From fcad063fc80e089529ae18aaf9d31ef69b1d6772 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Tue, 23 Apr 2024 08:36:41 +1000 Subject: [PATCH] #199 Split attributes out so net standard can be targeted --- Saunter.sln | 14 ++++++++++++++ .../AsyncAPI.Saunter.Attributes.csproj | 15 +++++++++++++++ .../AsyncApiAttribute.cs | 0 .../ChannelAttribute.cs | 0 .../ChannelParameterAttribute.cs | 0 .../MessageAttribute.cs | 0 .../OperationAttribute.cs | 0 src/AsyncAPI.Saunter.Attributes/readme.md | 0 src/Saunter/Saunter.csproj | 6 +++++- 9 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/AsyncAPI.Saunter.Attributes/AsyncAPI.Saunter.Attributes.csproj rename src/{Saunter/Attributes => AsyncAPI.Saunter.Attributes}/AsyncApiAttribute.cs (100%) rename src/{Saunter/Attributes => AsyncAPI.Saunter.Attributes}/ChannelAttribute.cs (100%) rename src/{Saunter/Attributes => AsyncAPI.Saunter.Attributes}/ChannelParameterAttribute.cs (100%) rename src/{Saunter/Attributes => AsyncAPI.Saunter.Attributes}/MessageAttribute.cs (100%) rename src/{Saunter/Attributes => AsyncAPI.Saunter.Attributes}/OperationAttribute.cs (100%) create mode 100644 src/AsyncAPI.Saunter.Attributes/readme.md diff --git a/Saunter.sln b/Saunter.sln index 038ce2f3..57b58be6 100644 --- a/Saunter.sln +++ b/Saunter.sln @@ -25,6 +25,7 @@ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Saunter.IntegrationTests.ReverseProxy", "test\Saunter.IntegrationTests.ReverseProxy\Saunter.IntegrationTests.ReverseProxy.csproj", "{7CD09B89-130A-41AF-ADAE-2166C4ED695B}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Saunter.Tests.MarkerTypeTests", "test\Saunter.Tests.MarkerTypeTests\Saunter.Tests.MarkerTypeTests.csproj", "{02284473-6DE7-4EE0-8433-2AC295045549}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AsyncAPI.Saunter.Attributes", "src\AsyncAPI.Saunter.Attributes\AsyncAPI.Saunter.Attributes.csproj", "{3591421D-0853-48C6-9A53-9E6B5D7E6B25}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "actions", "actions", "{D8CB9C0D-9605-457B-979F-C8994B20A926}" ProjectSection(SolutionItems) = preProject @@ -112,6 +113,18 @@ Global {02284473-6DE7-4EE0-8433-2AC295045549}.Release|x64.Build.0 = Release|Any CPU {02284473-6DE7-4EE0-8433-2AC295045549}.Release|x86.ActiveCfg = Release|Any CPU {02284473-6DE7-4EE0-8433-2AC295045549}.Release|x86.Build.0 = Release|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Debug|x64.ActiveCfg = Debug|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Debug|x64.Build.0 = Debug|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Debug|x86.ActiveCfg = Debug|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Debug|x86.Build.0 = Debug|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Release|Any CPU.Build.0 = Release|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Release|x64.ActiveCfg = Release|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Release|x64.Build.0 = Release|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Release|x86.ActiveCfg = Release|Any CPU + {3591421D-0853-48C6-9A53-9E6B5D7E6B25}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -124,6 +137,7 @@ Global {02284473-6DE7-4EE0-8433-2AC295045549} = {6491E321-2D02-44AB-9116-D722FE169595} {69459F9D-DA73-4E84-8BA7-4CE03E2B7664} = {D8CB9C0D-9605-457B-979F-C8994B20A926} {E8FACA22-CFED-4710-89E4-D55F31BF96B3} = {D8CB9C0D-9605-457B-979F-C8994B20A926} + {3591421D-0853-48C6-9A53-9E6B5D7E6B25} = {28D4C365-FDED-49AE-A97D-36202E24A55A} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {2F85D9DA-DBCF-4F13-8C42-5719F1469B2E} diff --git a/src/AsyncAPI.Saunter.Attributes/AsyncAPI.Saunter.Attributes.csproj b/src/AsyncAPI.Saunter.Attributes/AsyncAPI.Saunter.Attributes.csproj new file mode 100644 index 00000000..c44e002f --- /dev/null +++ b/src/AsyncAPI.Saunter.Attributes/AsyncAPI.Saunter.Attributes.csproj @@ -0,0 +1,15 @@ + + + + AysncAPI.Saunter.Attributes + AysncAPI.Saunter.Attributes + netstandard2.0 + README.md + Provides the raw attributes which can be used to decorate code as being async api functions + + + + + + + diff --git a/src/Saunter/Attributes/AsyncApiAttribute.cs b/src/AsyncAPI.Saunter.Attributes/AsyncApiAttribute.cs similarity index 100% rename from src/Saunter/Attributes/AsyncApiAttribute.cs rename to src/AsyncAPI.Saunter.Attributes/AsyncApiAttribute.cs diff --git a/src/Saunter/Attributes/ChannelAttribute.cs b/src/AsyncAPI.Saunter.Attributes/ChannelAttribute.cs similarity index 100% rename from src/Saunter/Attributes/ChannelAttribute.cs rename to src/AsyncAPI.Saunter.Attributes/ChannelAttribute.cs diff --git a/src/Saunter/Attributes/ChannelParameterAttribute.cs b/src/AsyncAPI.Saunter.Attributes/ChannelParameterAttribute.cs similarity index 100% rename from src/Saunter/Attributes/ChannelParameterAttribute.cs rename to src/AsyncAPI.Saunter.Attributes/ChannelParameterAttribute.cs diff --git a/src/Saunter/Attributes/MessageAttribute.cs b/src/AsyncAPI.Saunter.Attributes/MessageAttribute.cs similarity index 100% rename from src/Saunter/Attributes/MessageAttribute.cs rename to src/AsyncAPI.Saunter.Attributes/MessageAttribute.cs diff --git a/src/Saunter/Attributes/OperationAttribute.cs b/src/AsyncAPI.Saunter.Attributes/OperationAttribute.cs similarity index 100% rename from src/Saunter/Attributes/OperationAttribute.cs rename to src/AsyncAPI.Saunter.Attributes/OperationAttribute.cs diff --git a/src/AsyncAPI.Saunter.Attributes/readme.md b/src/AsyncAPI.Saunter.Attributes/readme.md new file mode 100644 index 00000000..e69de29b diff --git a/src/Saunter/Saunter.csproj b/src/Saunter/Saunter.csproj index 89875ef2..5147ee81 100644 --- a/src/Saunter/Saunter.csproj +++ b/src/Saunter/Saunter.csproj @@ -60,5 +60,9 @@ UI\package.json - + + + + +