diff --git a/DevStore.slnx b/DevStore.slnx index 40a32f29..3ffa6a9e 100644 --- a/DevStore.slnx +++ b/DevStore.slnx @@ -1,49 +1,50 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 00000000..8263012d --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/api-gateways/DevStore.Bff.Checkout/Configuration/ApiConfig.cs b/src/api-gateways/DevStore.Bff.Checkout/Configuration/ApiConfig.cs index 713337a5..85173458 100644 Binary files a/src/api-gateways/DevStore.Bff.Checkout/Configuration/ApiConfig.cs and b/src/api-gateways/DevStore.Bff.Checkout/Configuration/ApiConfig.cs differ diff --git a/src/api-gateways/DevStore.Bff.Checkout/DevStore.Bff.Checkout.csproj b/src/api-gateways/DevStore.Bff.Checkout/DevStore.Bff.Checkout.csproj index caacf2a3..71ecf43c 100644 Binary files a/src/api-gateways/DevStore.Bff.Checkout/DevStore.Bff.Checkout.csproj and b/src/api-gateways/DevStore.Bff.Checkout/DevStore.Bff.Checkout.csproj differ diff --git a/src/building-blocks/DevStore.Core/DevStore.Core.csproj b/src/building-blocks/DevStore.Core/DevStore.Core.csproj index 3683d87d..838c6bd0 100644 --- a/src/building-blocks/DevStore.Core/DevStore.Core.csproj +++ b/src/building-blocks/DevStore.Core/DevStore.Core.csproj @@ -1,18 +1,20 @@ - + net9.0 + true - - - - - - - - + + + + + + + + + diff --git a/src/building-blocks/DevStore.WebAPI.Core/Configuration/GenericHealthCheck.cs b/src/building-blocks/DevStore.Infra.Core/Configuration/GenericHealthCheck.cs similarity index 91% rename from src/building-blocks/DevStore.WebAPI.Core/Configuration/GenericHealthCheck.cs rename to src/building-blocks/DevStore.Infra.Core/Configuration/GenericHealthCheck.cs index 52f49377..0ac513f4 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/Configuration/GenericHealthCheck.cs +++ b/src/building-blocks/DevStore.Infra.Core/Configuration/GenericHealthCheck.cs @@ -1,13 +1,13 @@ -using DevStore.WebAPI.Core.DatabaseFlavor; +using DevStore.Infra.Core.DatabaseFlavor; using HealthChecks.UI.Client; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.HealthChecks; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; -using static DevStore.WebAPI.Core.DatabaseFlavor.ProviderConfiguration; +using static DevStore.Infra.Core.DatabaseFlavor.ProviderConfiguration; -namespace DevStore.WebAPI.Core.Configuration; +namespace DevStore.Infra.Core.Configuration; public static class GenericHealthCheck { diff --git a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ContextConfiguration.cs b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ContextConfiguration.cs similarity index 84% rename from src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ContextConfiguration.cs rename to src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ContextConfiguration.cs index bed35f51..bb03165b 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ContextConfiguration.cs +++ b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ContextConfiguration.cs @@ -1,9 +1,7 @@ -using System; -using System.Linq; -using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -namespace DevStore.WebAPI.Core.DatabaseFlavor; +namespace DevStore.Infra.Core.DatabaseFlavor; /// /// SqlServer configuration diff --git a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/DatabaseType.cs b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/DatabaseType.cs similarity index 64% rename from src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/DatabaseType.cs rename to src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/DatabaseType.cs index 2d4f5042..f54df43c 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/DatabaseType.cs +++ b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/DatabaseType.cs @@ -1,4 +1,4 @@ -namespace DevStore.WebAPI.Core.DatabaseFlavor; +namespace DevStore.Infra.Core.DatabaseFlavor; public enum DatabaseType { diff --git a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ProviderConfiguration.cs b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ProviderConfiguration.cs similarity index 57% rename from src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ProviderConfiguration.cs rename to src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ProviderConfiguration.cs index bff9e546..6fedf168 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ProviderConfiguration.cs +++ b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ProviderConfiguration.cs @@ -1,37 +1,29 @@ -using System; -using System.Reflection; +using System.Reflection; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; -namespace DevStore.WebAPI.Core.DatabaseFlavor; +namespace DevStore.Infra.Core.DatabaseFlavor; -public class ProviderConfiguration +public class ProviderConfiguration(string connString) { private static readonly string MigrationAssembly = - typeof(ProviderConfiguration).GetTypeInfo().Assembly.GetName().Name; - - private readonly string _connectionString; - - public ProviderConfiguration(string connString) - { - _connectionString = connString; - } + typeof(ProviderConfiguration).GetTypeInfo().Assembly.GetName().Name!; public Action SqlServer => - options => options.UseSqlServer(_connectionString, sql => sql.MigrationsAssembly(MigrationAssembly)); + options => options.UseSqlServer(connString, sql => sql.MigrationsAssembly(MigrationAssembly)); public Action MySql => - options => options.UseMySQL(_connectionString, sql => sql.MigrationsAssembly(MigrationAssembly)); + options => options.UseMySQL(connString, sql => sql.MigrationsAssembly(MigrationAssembly)); public Action Postgre => options => { - options.UseNpgsql(_connectionString, sql => sql.MigrationsAssembly(MigrationAssembly)); + options.UseNpgsql(connString, sql => sql.MigrationsAssembly(MigrationAssembly)); AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); }; public Action Sqlite => - options => options.UseSqlite(_connectionString, sql => sql.MigrationsAssembly(MigrationAssembly)); + options => options.UseSqlite(connString, sql => sql.MigrationsAssembly(MigrationAssembly)); public ProviderConfiguration With() { @@ -43,15 +35,13 @@ public static ProviderConfiguration Build(string connString) return new ProviderConfiguration(connString); } - /// - /// it's just a tuple. Returns 2 parameters. - /// Trying to improve readability at ConfigureServices + /// Improve readability at ConfigureServices /// public static (DatabaseType, string) DetectDatabase(IConfiguration configuration) { return ( configuration.GetValue("AppSettings:DatabaseType", DatabaseType.None), - configuration.GetConnectionString("DefaultConnection")); + configuration.GetConnectionString("DefaultConnection"))!; } } \ No newline at end of file diff --git a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ProviderSelector.cs b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ProviderSelector.cs similarity index 89% rename from src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ProviderSelector.cs rename to src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ProviderSelector.cs index afc39325..ad1b43d6 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/DatabaseFlavor/ProviderSelector.cs +++ b/src/building-blocks/DevStore.Infra.Core/DatabaseFlavor/ProviderSelector.cs @@ -1,9 +1,8 @@ -using System; -using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -using static DevStore.WebAPI.Core.DatabaseFlavor.ProviderConfiguration; +using static DevStore.Infra.Core.DatabaseFlavor.ProviderConfiguration; -namespace DevStore.WebAPI.Core.DatabaseFlavor; +namespace DevStore.Infra.Core.DatabaseFlavor; public static class ProviderSelector { diff --git a/src/building-blocks/DevStore.Infra.Core/DevStore.Infra.Core.csproj b/src/building-blocks/DevStore.Infra.Core/DevStore.Infra.Core.csproj new file mode 100644 index 00000000..8ea4f39f --- /dev/null +++ b/src/building-blocks/DevStore.Infra.Core/DevStore.Infra.Core.csproj @@ -0,0 +1,30 @@ + + + + net9.0 + enable + enable + true + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/building-blocks/DevStore.MessageBus/DevStore.MessageBus.csproj b/src/building-blocks/DevStore.MessageBus/DevStore.MessageBus.csproj index b2b4bbd9..71e9f94c 100644 Binary files a/src/building-blocks/DevStore.MessageBus/DevStore.MessageBus.csproj and b/src/building-blocks/DevStore.MessageBus/DevStore.MessageBus.csproj differ diff --git a/src/building-blocks/DevStore.WebAPI.Core/Configuration/ApiCoreConfig.cs b/src/building-blocks/DevStore.WebAPI.Core/Configuration/ApiCoreConfig.cs index 895f8fae..bae86cef 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/Configuration/ApiCoreConfig.cs +++ b/src/building-blocks/DevStore.WebAPI.Core/Configuration/ApiCoreConfig.cs @@ -1,4 +1,5 @@ -using DevStore.WebAPI.Core.DatabaseFlavor; +using DevStore.Infra.Core.Configuration; +using DevStore.Infra.Core.DatabaseFlavor; using DevStore.WebAPI.Core.Identity; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; @@ -7,7 +8,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Serilog; -using static DevStore.WebAPI.Core.DatabaseFlavor.ProviderConfiguration; +using static DevStore.Infra.Core.DatabaseFlavor.ProviderConfiguration; namespace DevStore.WebAPI.Core.Configuration; @@ -19,7 +20,7 @@ public static void AddLogger(this IServiceCollection services, IConfiguration co .ReadFrom.Configuration(configuration) .CreateLogger()); } - + public static IServiceCollection AddApiCoreConfiguration(this IServiceCollection services, IConfiguration configuration) { diff --git a/src/building-blocks/DevStore.WebAPI.Core/Configuration/DbHealthChecker.cs b/src/building-blocks/DevStore.WebAPI.Core/Configuration/DbHealthChecker.cs index 5294a667..050e2ef2 100644 --- a/src/building-blocks/DevStore.WebAPI.Core/Configuration/DbHealthChecker.cs +++ b/src/building-blocks/DevStore.WebAPI.Core/Configuration/DbHealthChecker.cs @@ -36,7 +36,8 @@ public static async Task WaitForTable(DbContext context) where T : class } // after a few attemps we give up - throw new DatabaseNotFoundException("Error waiting for database. Check ConnectionString and ensure database exists"); + throw new DatabaseNotFoundException( + "Error waiting for database. Check ConnectionString and ensure database exists"); } private static bool CanConnect(DbContext context) diff --git a/src/building-blocks/DevStore.WebAPI.Core/DevStore.WebAPI.Core.csproj b/src/building-blocks/DevStore.WebAPI.Core/DevStore.WebAPI.Core.csproj index e07d7072..149920da 100644 Binary files a/src/building-blocks/DevStore.WebAPI.Core/DevStore.WebAPI.Core.csproj and b/src/building-blocks/DevStore.WebAPI.Core/DevStore.WebAPI.Core.csproj differ diff --git a/src/services/DevStore.Billing.API/DevStore.Billing.API.csproj b/src/services/DevStore.Billing.API/DevStore.Billing.API.csproj index 4849d2fe..bc3d9c66 100644 Binary files a/src/services/DevStore.Billing.API/DevStore.Billing.API.csproj and b/src/services/DevStore.Billing.API/DevStore.Billing.API.csproj differ diff --git a/src/services/DevStore.Billing.DevsPay/DevStore.Billing.DevsPay.csproj b/src/services/DevStore.Billing.DevsPay/DevStore.Billing.DevsPay.csproj index bb0f1edb..f7a9ce69 100644 --- a/src/services/DevStore.Billing.DevsPay/DevStore.Billing.DevsPay.csproj +++ b/src/services/DevStore.Billing.DevsPay/DevStore.Billing.DevsPay.csproj @@ -2,13 +2,15 @@ net9.0 + true - - - - + + + + + diff --git a/src/services/DevStore.Catalog.API/DevStore.Catalog.API.csproj b/src/services/DevStore.Catalog.API/DevStore.Catalog.API.csproj index cb651606..2068ce61 100644 Binary files a/src/services/DevStore.Catalog.API/DevStore.Catalog.API.csproj and b/src/services/DevStore.Catalog.API/DevStore.Catalog.API.csproj differ diff --git a/src/services/DevStore.Catalog.API/Program.cs b/src/services/DevStore.Catalog.API/Program.cs index 909c8ae6..796acbcf 100644 --- a/src/services/DevStore.Catalog.API/Program.cs +++ b/src/services/DevStore.Catalog.API/Program.cs @@ -29,5 +29,5 @@ namespace DevStore.Catalog.API { - public partial class Program; + public class Program; } \ No newline at end of file diff --git a/src/services/DevStore.Customers.API/Configuration/ApiConfig.cs b/src/services/DevStore.Customers.API/Configuration/ApiConfig.cs index bd2b6cbe..6d5e6d66 100644 Binary files a/src/services/DevStore.Customers.API/Configuration/ApiConfig.cs and b/src/services/DevStore.Customers.API/Configuration/ApiConfig.cs differ diff --git a/src/services/DevStore.Customers.API/DevStore.Customers.API.csproj b/src/services/DevStore.Customers.API/DevStore.Customers.API.csproj index 4637dfa7..44629f3f 100644 Binary files a/src/services/DevStore.Customers.API/DevStore.Customers.API.csproj and b/src/services/DevStore.Customers.API/DevStore.Customers.API.csproj differ diff --git a/src/services/DevStore.Identity.API/Configuration/ApiConfig.cs b/src/services/DevStore.Identity.API/Configuration/ApiConfig.cs index 4b38f2c2..2c292ed3 100644 Binary files a/src/services/DevStore.Identity.API/Configuration/ApiConfig.cs and b/src/services/DevStore.Identity.API/Configuration/ApiConfig.cs differ diff --git a/src/services/DevStore.Identity.API/Configuration/IdentityConfig.cs b/src/services/DevStore.Identity.API/Configuration/IdentityConfig.cs index 5db2b18e..7395872a 100644 Binary files a/src/services/DevStore.Identity.API/Configuration/IdentityConfig.cs and b/src/services/DevStore.Identity.API/Configuration/IdentityConfig.cs differ diff --git a/src/services/DevStore.Identity.API/DevStore.Identity.API.csproj b/src/services/DevStore.Identity.API/DevStore.Identity.API.csproj index cfbe1b0a..aec3bf58 100644 Binary files a/src/services/DevStore.Identity.API/DevStore.Identity.API.csproj and b/src/services/DevStore.Identity.API/DevStore.Identity.API.csproj differ diff --git a/src/services/DevStore.Orders.API/DevStore.Orders.API.csproj b/src/services/DevStore.Orders.API/DevStore.Orders.API.csproj index 5f7f73d9..beec283e 100644 Binary files a/src/services/DevStore.Orders.API/DevStore.Orders.API.csproj and b/src/services/DevStore.Orders.API/DevStore.Orders.API.csproj differ diff --git a/src/services/DevStore.Orders.Domain/DevStore.Orders.Domain.csproj b/src/services/DevStore.Orders.Domain/DevStore.Orders.Domain.csproj index 39b7a694..3d3fbaa5 100644 Binary files a/src/services/DevStore.Orders.Domain/DevStore.Orders.Domain.csproj and b/src/services/DevStore.Orders.Domain/DevStore.Orders.Domain.csproj differ diff --git a/src/services/DevStore.Orders.Infra/DevStore.Orders.Infra.csproj b/src/services/DevStore.Orders.Infra/DevStore.Orders.Infra.csproj index 4b283cd0..8520e46d 100644 Binary files a/src/services/DevStore.Orders.Infra/DevStore.Orders.Infra.csproj and b/src/services/DevStore.Orders.Infra/DevStore.Orders.Infra.csproj differ diff --git a/src/services/DevStore.ShoppingCart.API/DevStore.ShoppingCart.API.csproj b/src/services/DevStore.ShoppingCart.API/DevStore.ShoppingCart.API.csproj index 22f97be3..c0156566 100644 --- a/src/services/DevStore.ShoppingCart.API/DevStore.ShoppingCart.API.csproj +++ b/src/services/DevStore.ShoppingCart.API/DevStore.ShoppingCart.API.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -6,16 +6,17 @@ 14093821-325c-4620-86a1-2b4a9d955c4f Linux ..\..\.. + true - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/src/tests/DevStore.Tests/CatalogApi/CatalogIntegrationTests.cs b/src/tests/DevStore.Tests/CatalogApi/CatalogIntegrationTests.cs index 8cec0dca..aeb117c5 100644 --- a/src/tests/DevStore.Tests/CatalogApi/CatalogIntegrationTests.cs +++ b/src/tests/DevStore.Tests/CatalogApi/CatalogIntegrationTests.cs @@ -1,21 +1,19 @@ +using DevStore.Catalog.API; using DevStore.Catalog.API.Data; using DevStore.Catalog.API.Models; namespace DevStore.Tests.CatalogApi; public abstract class CatalogIntegrationTests() - : IntegrationTest("http://localhost/catalog/") + : IntegrationTest("http://localhost/catalog/") { protected async Task AddProducts(params Product[] products) { await ExecuteInScope(async ctx => { - foreach (var product in products) - { - ctx.Products.Add(product); - } + foreach (var product in products) ctx.Products.Add(product); await ctx.SaveChangesAsync(); }); } -} +} \ No newline at end of file diff --git a/src/tests/DevStore.Tests/DevStore.Tests.csproj b/src/tests/DevStore.Tests/DevStore.Tests.csproj index 5aa8b1f0..dadbfaf7 100644 --- a/src/tests/DevStore.Tests/DevStore.Tests.csproj +++ b/src/tests/DevStore.Tests/DevStore.Tests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -6,20 +6,21 @@ enable enable false + true - - all - runtime; build; native; contentfiles; analyzers; buildtransitive + + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive @@ -28,7 +29,7 @@ - + diff --git a/src/tests/DevStore.Tests/IntegrationTest.cs b/src/tests/DevStore.Tests/IntegrationTest.cs index d1dbe199..ea22ad9d 100644 --- a/src/tests/DevStore.Tests/IntegrationTest.cs +++ b/src/tests/DevStore.Tests/IntegrationTest.cs @@ -5,7 +5,7 @@ namespace DevStore.Tests; -public abstract class IntegrationTest(string baseUrl) : +public abstract class IntegrationTest(string baseUrl) : IClassFixture>, IAsyncLifetime, IDisposable @@ -27,6 +27,12 @@ public Task DisposeAsync() return Task.CompletedTask; } + public void Dispose() + { + _webApiFactory.Dispose(); + HttpClient.Dispose(); + } + protected async Task ExecuteInScope(Func action) where T : notnull { await using var scope = _webApiFactory.Services.CreateAsyncScope(); @@ -66,10 +72,4 @@ protected static async Task ShouldEventuallyAssert(Func assert, TimeSpan? break; } } - - public void Dispose() - { - _webApiFactory.Dispose(); - HttpClient.Dispose(); - } -} +} \ No newline at end of file diff --git a/src/web/DevStore.WebApp.MVC/Configuration/WebAppConfig.cs b/src/web/DevStore.WebApp.MVC/Configuration/WebAppConfig.cs index a19f0421..33a137b4 100644 Binary files a/src/web/DevStore.WebApp.MVC/Configuration/WebAppConfig.cs and b/src/web/DevStore.WebApp.MVC/Configuration/WebAppConfig.cs differ diff --git a/src/web/DevStore.WebApp.MVC/DevStore.WebApp.MVC.csproj b/src/web/DevStore.WebApp.MVC/DevStore.WebApp.MVC.csproj index 552b2b17..c3db3e66 100644 Binary files a/src/web/DevStore.WebApp.MVC/DevStore.WebApp.MVC.csproj and b/src/web/DevStore.WebApp.MVC/DevStore.WebApp.MVC.csproj differ diff --git a/src/web/DevStore.WebApp.MVC/Extensions/ExceptionMiddleware.cs b/src/web/DevStore.WebApp.MVC/Extensions/ExceptionMiddleware.cs index d432700e..ebd5ba32 100644 Binary files a/src/web/DevStore.WebApp.MVC/Extensions/ExceptionMiddleware.cs and b/src/web/DevStore.WebApp.MVC/Extensions/ExceptionMiddleware.cs differ diff --git a/src/web/DevStore.WebApp.MVC/Properties/AssemblyInfo.cs b/src/web/DevStore.WebApp.MVC/Properties/AssemblyInfo.cs index b4338f3c..83a7aa41 100644 --- a/src/web/DevStore.WebApp.MVC/Properties/AssemblyInfo.cs +++ b/src/web/DevStore.WebApp.MVC/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("DevStore.Tests")] +[assembly: InternalsVisibleTo("DevStore.Tests")] \ No newline at end of file diff --git a/src/web/DevStore.WebApp.MVC/Services/AuthService.cs b/src/web/DevStore.WebApp.MVC/Services/AuthService.cs index 9d2e3fd5..361e59f9 100644 Binary files a/src/web/DevStore.WebApp.MVC/Services/AuthService.cs and b/src/web/DevStore.WebApp.MVC/Services/AuthService.cs differ diff --git a/src/web/DevStore.WebApp.Status/DevStore.WebApp.Status.csproj b/src/web/DevStore.WebApp.Status/DevStore.WebApp.Status.csproj index 3d0c7ba8..c9529b4b 100644 --- a/src/web/DevStore.WebApp.Status/DevStore.WebApp.Status.csproj +++ b/src/web/DevStore.WebApp.Status/DevStore.WebApp.Status.csproj @@ -7,21 +7,22 @@ 0ab5617d-1cdf-455d-b9e2-e9f76e347af1 Linux ..\..\.. + true NU1608 - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/web/DevStore.WebApp.Status/Program.cs b/src/web/DevStore.WebApp.Status/Program.cs index 38075d9e..3a6f3a6f 100644 --- a/src/web/DevStore.WebApp.Status/Program.cs +++ b/src/web/DevStore.WebApp.Status/Program.cs @@ -1,8 +1,7 @@ +using DevStore.Infra.Core.DatabaseFlavor; using DevStore.WebAPI.Core.Configuration; -using DevStore.WebAPI.Core.DatabaseFlavor; using DevStore.WebAPI.Core.Extensions; - -using static DevStore.WebAPI.Core.DatabaseFlavor.ProviderConfiguration; +using static DevStore.Infra.Core.DatabaseFlavor.ProviderConfiguration; var builder = WebApplication.CreateBuilder(args); @@ -11,7 +10,7 @@ var healthCheckBuilder = builder.Services.AddHealthChecksUI(setup => { setup.SetHeaderText("DevStore - Status Page"); - var endpoints = builder.Configuration.GetSection("ENDPOINTS").Get(); + var endpoints = builder.Configuration.GetSection("ENDPOINTS").Get()!; foreach (var endpoint in endpoints.Split(";")) {