diff --git a/api/modules/Catalog/Catalog.Application/Products/EventHandlers/ProductReadEventHandler.cs b/api/modules/Catalog/Catalog.Application/Products/EventHandlers/ProductReadEventHandler.cs deleted file mode 100644 index 031ec3bb7..000000000 --- a/api/modules/Catalog/Catalog.Application/Products/EventHandlers/ProductReadEventHandler.cs +++ /dev/null @@ -1,17 +0,0 @@ -using FSH.WebApi.Catalog.Domain.Events; -using Microsoft.Extensions.Logging; -using MediatR; - -namespace FSH.WebApi.Catalog.Application.Products.EventHandlers; - -public class ProductReadEventHandler(ILogger logger) : INotificationHandler -{ - public async Task Handle(ProductRead notification, - CancellationToken cancellationToken) - { - logger.LogInformation("handling product read domain event.."); - await Task.FromResult(notification); - logger.LogInformation("finished handling product read domain event.."); - } -} - diff --git a/api/modules/Catalog/Catalog.Domain/Events/ProductRead.cs b/api/modules/Catalog/Catalog.Domain/Events/ProductRead.cs deleted file mode 100644 index 28308d32b..000000000 --- a/api/modules/Catalog/Catalog.Domain/Events/ProductRead.cs +++ /dev/null @@ -1,7 +0,0 @@ -using FSH.Framework.Core.Domain.Events; - -namespace FSH.WebApi.Catalog.Domain.Events; -public sealed record ProductRead : DomainEvent -{ - public Product? Product { get; set; } -} diff --git a/api/server/Properties/launchSettings.json b/api/server/Properties/launchSettings.json index 321bf9738..913f9d039 100644 --- a/api/server/Properties/launchSettings.json +++ b/api/server/Properties/launchSettings.json @@ -1,15 +1,15 @@ { + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { "Kestrel": { "commandName": "Project", "launchBrowser": true, "launchUrl": "swagger", + "applicationUrl": "https://localhost:7000;http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7000;http://localhost:5000" + "dotnetRunMessages": true } - }, - "$schema": "http://json.schemastore.org/launchsettings.json" + } } \ No newline at end of file diff --git a/api/server/Server.csproj b/api/server/Server.csproj index 948a1883e..0104b729d 100644 --- a/api/server/Server.csproj +++ b/api/server/Server.csproj @@ -9,6 +9,7 @@ 2.0.0;latest DefaultContainer + all diff --git a/api/server/appsettings.Development.json b/api/server/appsettings.Development.json index 3cb2980c3..5123aaef5 100644 --- a/api/server/appsettings.Development.json +++ b/api/server/appsettings.Development.json @@ -1,7 +1,7 @@ { "DatabaseOptions": { "Provider": "postgresql", - "ConnectionString": "Server=localhost;Database=fullstackhero;Port=5432;User Id=postgres;Password=admin;" + "ConnectionString": "Server=localhost;Database=fullstackhero;Port=5432;User Id=postgres;Password=password;" }, "CacheOptions": { "Redis": ""