diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 58ec734..5f216c5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -15,9 +15,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: | - 7.0.x - 8.0.x + dotnet-version: 8.0.x # Add NuGet Sources diff --git a/src/durable-task/Azure.DurableTask/Azure.DurableTask.csproj b/src/durable-task/Azure.DurableTask/Azure.DurableTask.csproj index 4405891..380fb3a 100644 --- a/src/durable-task/Azure.DurableTask/Azure.DurableTask.csproj +++ b/src/durable-task/Azure.DurableTask/Azure.DurableTask.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 latest disable enable @@ -9,7 +9,7 @@ true GarageGroup.Infra GarageGroup.Infra.Azure.DurableTask - 0.6.0 + 0.7.0 @@ -20,7 +20,7 @@ - + diff --git a/src/endpoint/Azure.Endpoint/Azure.Endpoint.csproj b/src/endpoint/Azure.Endpoint/Azure.Endpoint.csproj index dabf259..8e0d4fb 100644 --- a/src/endpoint/Azure.Endpoint/Azure.Endpoint.csproj +++ b/src/endpoint/Azure.Endpoint/Azure.Endpoint.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 latest disable enable @@ -9,7 +9,7 @@ true GarageGroup.Infra GarageGroup.Infra.Azure.Endpoint - 0.12.0 + 0.13.0 @@ -20,7 +20,7 @@ - + diff --git a/src/endpoint/Azure.Endpoint/FunctionSwaggerBuilder/Builder.Configure.cs b/src/endpoint/Azure.Endpoint/FunctionSwaggerBuilder/Builder.Configure.cs index b9da105..0f5902b 100644 --- a/src/endpoint/Azure.Endpoint/FunctionSwaggerBuilder/Builder.Configure.cs +++ b/src/endpoint/Azure.Endpoint/FunctionSwaggerBuilder/Builder.Configure.cs @@ -9,7 +9,7 @@ public FunctionSwaggerBuilder Configure(Action configure) { ArgumentNullException.ThrowIfNull(configure); - configure(document); + configure.Invoke(document); return this; } } \ No newline at end of file diff --git a/src/endpoint/Azure.Endpoint/FunctionSwaggerUIHelper/FunctionSwaggerUIHelper.cs b/src/endpoint/Azure.Endpoint/FunctionSwaggerUIHelper/FunctionSwaggerUIHelper.cs index 7a87c7c..f0986b0 100644 --- a/src/endpoint/Azure.Endpoint/FunctionSwaggerUIHelper/FunctionSwaggerUIHelper.cs +++ b/src/endpoint/Azure.Endpoint/FunctionSwaggerUIHelper/FunctionSwaggerUIHelper.cs @@ -45,21 +45,13 @@ private static string LoadAndUpdateHtml(this string documentHtml, ZipArchive arc private static Stream GetZippedResources() { - var assembly = Assembly.GetAssembly(typeof(SwashBuckleClient)); - if (assembly is null) - { - throw new InvalidOperationException($"Assembly for type {typeof(SwashBuckleClient)} was not found"); - } + var assembly = Assembly.GetAssembly(typeof(SwashBuckleClient)) + ?? throw new InvalidOperationException($"Assembly for type {typeof(SwashBuckleClient)} was not found"); var resourceName = $"{typeof(ISwashBuckleClient).Namespace}.EmbededResources.resources.zip"; - var resources = assembly.GetManifestResourceStream(resourceName); - if (resources is null) - { - throw new InvalidOperationException($"ManifestResource {resourceName} must be not null"); - } - - return resources; + return assembly.GetManifestResourceStream(resourceName) + ?? throw new InvalidOperationException($"ManifestResource {resourceName} must be not null"); } private static ZipArchiveEntry GetEntryOrThrow(this ZipArchive archive, string entryName) diff --git a/src/handler/Azure.Handler/Annotations/Function/EventGridFunctionAttribute.cs b/src/handler/Azure.Handler/Annotations/Function/EventGridFunctionAttribute.cs index 076be41..c180f09 100644 --- a/src/handler/Azure.Handler/Annotations/Function/EventGridFunctionAttribute.cs +++ b/src/handler/Azure.Handler/Annotations/Function/EventGridFunctionAttribute.cs @@ -3,9 +3,6 @@ namespace GarageGroup.Infra; [AttributeUsage(AttributeTargets.Method)] -public sealed class EventGridFunctionAttribute : HandlerFunctionAttribute +public sealed class EventGridFunctionAttribute(string name) : HandlerFunctionAttribute(name) { - public EventGridFunctionAttribute(string name) : base(name) - { - } } \ No newline at end of file diff --git a/src/handler/Azure.Handler/Azure.Handler.csproj b/src/handler/Azure.Handler/Azure.Handler.csproj index 5e30067..6546e70 100644 --- a/src/handler/Azure.Handler/Azure.Handler.csproj +++ b/src/handler/Azure.Handler/Azure.Handler.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 latest disable enable @@ -9,7 +9,7 @@ true GarageGroup.Infra GarageGroup.Infra.Azure.Handler - 0.13.0 + 0.14.0 @@ -20,7 +20,7 @@ - + diff --git a/src/hosting/Azure.Hosting/Azure.Hosting.csproj b/src/hosting/Azure.Hosting/Azure.Hosting.csproj index f832b8f..43ad51a 100644 --- a/src/hosting/Azure.Hosting/Azure.Hosting.csproj +++ b/src/hosting/Azure.Hosting/Azure.Hosting.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 latest disable enable @@ -9,14 +9,14 @@ true GarageGroup.Infra GarageGroup.Infra.Azure.Hosting - 0.8.0 + 0.9.0 - + - + diff --git a/src/swagger/Azure.Swagger/Azure.Swagger.csproj b/src/swagger/Azure.Swagger/Azure.Swagger.csproj index 58cb704..b6a1175 100644 --- a/src/swagger/Azure.Swagger/Azure.Swagger.csproj +++ b/src/swagger/Azure.Swagger/Azure.Swagger.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 latest disable enable @@ -9,7 +9,7 @@ true GarageGroup.Infra GarageGroup.Infra.Azure.Swagger - 0.7.0 + 0.8.0