From 8da7635954885352721c40a4c74b316ffdf4bfab Mon Sep 17 00:00:00 2001 From: Mahdiyar Ghannad Date: Sat, 11 Nov 2023 17:58:35 +0330 Subject: [PATCH] Update core packages and made it true in builder arguments --- ...yMicroservices.PaymentsMicroservice.Database.csproj | 2 +- ...asyMicroservices.PaymentsMicroservice.Domain.csproj | 2 +- ...syMicroservices.PaymentsMicroservice.StartUp.csproj | 2 +- ...EasyMicroservices.PaymentsMicroservice.Tests.csproj | 10 +++++----- ...asyMicroservices.PaymentsMicroservice.WebApi.csproj | 2 +- .../Program.cs | 4 +--- 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj index b006dd3..c60bb37 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj index a8074f4..f212999 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj index 4e2642b..8ad1d99 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj index a838697..9f2a597 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj @@ -9,13 +9,13 @@ - + - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj index 0d44662..92358ff 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj @@ -6,7 +6,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs index 54d7674..61a58ef 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs @@ -11,8 +11,7 @@ public class Program public static async Task Main(string[] args) { var app = CreateBuilder(args); - var build = await app.Build(); - build.UseGlobalExceptionHandler(); + var build = await app.Build(true); build.MapControllers(); await build.RunAsync(); } @@ -33,7 +32,6 @@ public static async Task Run(string[] args, Action use, Acti var app = CreateBuilder(args); use?.Invoke(app.Services); var build = await app.Build(); - build.UseGlobalExceptionHandler(); build.MapControllers(); serviceProvider(build.Services); await build.RunAsync();