From 2e7babf48167ab4ab5e40b36166c9362a7536fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Koca=C3=B6z?= Date: Wed, 15 Nov 2023 22:40:03 +0300 Subject: [PATCH] Rename projects (#91) --- build/acr-build/queue-all.ps1 | 4 ++-- build/multiarch-manifests/create-manifests.ps1 | 2 +- eShop.Web.slnf | 4 ++-- eShop.sln | 4 ++-- .../BackgroundTaskOptions.cs | 2 +- .../Events/GracePeriodConfirmedIntegrationEvent.cs | 2 +- .../Extensions/Extensions.cs | 4 ++-- .../GlobalUsings.cs | 4 ++-- .../OrderProcessor.csproj} | 0 .../Program.cs | 0 .../Properties/launchSettings.json | 2 +- .../Services/GracePeriodManagerService.cs | 4 ++-- .../appsettings.Development.json | 0 .../appsettings.json | 2 +- src/Payment.API/GlobalUsings.cs | 7 ------- src/PaymentProcessor/GlobalUsings.cs | 7 +++++++ ...StatusChangedToStockConfirmedIntegrationEventHandler.cs | 2 +- .../Events/OrderPaymentFailedIntegrationEvent.cs | 2 +- .../Events/OrderPaymentSucceededIntegrationEvent.cs | 2 +- .../OrderStatusChangedToStockConfirmedIntegrationEvent.cs | 2 +- src/{Payment.API => PaymentProcessor}/PaymentOptions.cs | 2 +- .../PaymentProcessor.csproj} | 0 src/{Payment.API => PaymentProcessor}/Program.cs | 0 .../Properties/launchSettings.json | 2 +- .../appsettings.Development.json | 0 src/{Payment.API => PaymentProcessor}/appsettings.json | 2 +- src/eShop.AppHost/Program.cs | 4 ++-- src/eShop.AppHost/eShop.AppHost.csproj | 4 ++-- 28 files changed, 35 insertions(+), 35 deletions(-) rename src/{Ordering.BackgroundTasks => OrderProcessor}/BackgroundTaskOptions.cs (74%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/Events/GracePeriodConfirmedIntegrationEvent.cs (83%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/Extensions/Extensions.cs (88%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/GlobalUsings.cs (66%) rename src/{Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj => OrderProcessor/OrderProcessor.csproj} (100%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/Program.cs (100%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/Properties/launchSettings.json (85%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/Services/GracePeriodManagerService.cs (97%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/appsettings.Development.json (100%) rename src/{Ordering.BackgroundTasks => OrderProcessor}/appsettings.json (85%) delete mode 100644 src/Payment.API/GlobalUsings.cs create mode 100644 src/PaymentProcessor/GlobalUsings.cs rename src/{Payment.API => PaymentProcessor}/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs (95%) rename src/{Payment.API => PaymentProcessor}/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs (57%) rename src/{Payment.API => PaymentProcessor}/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs (58%) rename src/{Payment.API => PaymentProcessor}/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs (61%) rename src/{Payment.API => PaymentProcessor}/PaymentOptions.cs (68%) rename src/{Payment.API/Payment.API.csproj => PaymentProcessor/PaymentProcessor.csproj} (100%) rename src/{Payment.API => PaymentProcessor}/Program.cs (100%) rename src/{Payment.API => PaymentProcessor}/Properties/launchSettings.json (89%) rename src/{Payment.API => PaymentProcessor}/appsettings.Development.json (100%) rename src/{Payment.API => PaymentProcessor}/appsettings.json (84%) diff --git a/build/acr-build/queue-all.ps1 b/build/acr-build/queue-all.ps1 index eca90194..d0861998 100644 --- a/build/acr-build/queue-all.ps1 +++ b/build/acr-build/queue-all.ps1 @@ -13,11 +13,11 @@ $services = @( @{ Name="eshopcatalog"; Image="eshop/catalog.api"; File="src/Services/Catalog/Catalog.API/Dockerfile" }, @{ Name="eshopidentity"; Image="eshop/identity.api"; File="src/Services/Identity/Identity.API/Dockerfile" }, @{ Name="eshopordering"; Image="eshop/ordering.api"; File="src/Services/Ordering/Ordering.API/Dockerfile" }, - @{ Name="eshoporderingbg"; Image="eshop/ordering.backgroundtasks"; File="src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile" }, + @{ Name="eshoporderingbg"; Image="eshop/orderprocessor"; File="src/Services/Ordering/OrderProcessor/Dockerfile" }, @{ Name="eshopwebspa"; Image="eshop/webspa"; File="src/Web/WebSPA/Dockerfile" }, @{ Name="eshopwebmvc"; Image="eshop/webmvc"; File="src/Web/WebMVC/Dockerfile" }, @{ Name="eshopwebstatus"; Image="eshop/webstatus"; File="src/Web/WebStatus/Dockerfile" }, - @{ Name="eshoppayment"; Image="eshop/payment.api"; File="src/Services/Payment/Payment.API/Dockerfile" }, + @{ Name="eshoppayment"; Image="eshop/paymentprocessor"; File="src/Services/Payment/PaymentProcessor/Dockerfile" }, @{ Name="eshopocelotapigw"; Image="eshop/ocelotapigw"; File="src/ApiGateways/ApiGw-Base/Dockerfile" }, @{ Name="eshopmobileshoppingagg"; Image="eshop/mobileshoppingagg"; File="src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile" }, @{ Name="eshopwebshoppingagg"; Image="eshop/webshoppingagg"; File="src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile" }, diff --git a/build/multiarch-manifests/create-manifests.ps1 b/build/multiarch-manifests/create-manifests.ps1 index 6fc67b06..d65371e7 100644 --- a/build/multiarch-manifests/create-manifests.ps1 +++ b/build/multiarch-manifests/create-manifests.ps1 @@ -12,7 +12,7 @@ Write-Host "Tags used are linux-master, win-master, linux-dev, win-dev, linux-la Write-Host "Multiarch images tags will be master, dev, latest" -ForegroundColor Yellow -$services = "identity.api", "basket.api", "catalog.api", "ordering.api", "ordering.backgroundtasks", "payment.api", "webhooks.api", "ocelotapigw", "mobileshoppingagg", "webshoppingagg", "ordering.signalrhub", "webstatus", "webspa", "webmvc", "webhooks.client" +$services = "identity.api", "basket.api", "catalog.api", "ordering.api", "orderprocessor", "paymentprocessor", "webhooks.api", "ocelotapigw", "mobileshoppingagg", "webshoppingagg", "ordering.signalrhub", "webstatus", "webspa", "webmvc", "webhooks.client" foreach ($svc in $services) { Write-Host "Creating manifest for $svc and tags :latest, :master, and :dev" diff --git a/eShop.Web.slnf b/eShop.Web.slnf index 2f6caaf2..3fcab7f7 100644 --- a/eShop.Web.slnf +++ b/eShop.Web.slnf @@ -10,10 +10,10 @@ "src\\IntegrationEventLogEF\\IntegrationEventLogEF.csproj", "src\\Mobile.Bff.Shopping\\Mobile.Bff.Shopping.csproj", "src\\Ordering.API\\Ordering.API.csproj", - "src\\Ordering.BackgroundTasks\\Ordering.BackgroundTasks.csproj", + "src\\OrderProcessor\\OrderProcessor.csproj", "src\\Ordering.Domain\\Ordering.Domain.csproj", "src\\Ordering.Infrastructure\\Ordering.Infrastructure.csproj", - "src\\Payment.API\\Payment.API.csproj", + "src\\PaymentProcessor\\PaymentProcessor.csproj", "src\\WebAppComponents\\WebAppComponents.csproj", "src\\WebApp\\WebApp.csproj", "src\\WebhookClient\\WebhookClient.csproj", diff --git a/eShop.sln b/eShop.sln index 369fc14c..8ead83b6 100644 --- a/eShop.sln +++ b/eShop.sln @@ -35,13 +35,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mobile.Bff.Shopping", "src\ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ordering.API", "src\Ordering.API\Ordering.API.csproj", "{C8BA83CE-480E-4CC7-9508-747A76671F63}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ordering.BackgroundTasks", "src\Ordering.BackgroundTasks\Ordering.BackgroundTasks.csproj", "{0E5BE4C6-BF24-4BDA-908F-EFB99D22159D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OrderProcessor", "src\OrderProcessor\OrderProcessor.csproj", "{0E5BE4C6-BF24-4BDA-908F-EFB99D22159D}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ordering.Domain", "src\Ordering.Domain\Ordering.Domain.csproj", "{DCA3AE8C-904C-48A6-BC0C-2CF995DDFD99}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ordering.Infrastructure", "src\Ordering.Infrastructure\Ordering.Infrastructure.csproj", "{75474943-A318-4DF0-AB01-04F752827152}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Payment.API", "src\Payment.API\Payment.API.csproj", "{A2369111-2D88-4612-BFD2-9BEA0CB6D37E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PaymentProcessor", "src\PaymentProcessor\PaymentProcessor.csproj", "{A2369111-2D88-4612-BFD2-9BEA0CB6D37E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApp", "src\WebApp\WebApp.csproj", "{BE636956-26D5-404D-B269-17800032625D}" EndProject diff --git a/src/Ordering.BackgroundTasks/BackgroundTaskOptions.cs b/src/OrderProcessor/BackgroundTaskOptions.cs similarity index 74% rename from src/Ordering.BackgroundTasks/BackgroundTaskOptions.cs rename to src/OrderProcessor/BackgroundTaskOptions.cs index 07238880..486cb9a7 100644 --- a/src/Ordering.BackgroundTasks/BackgroundTaskOptions.cs +++ b/src/OrderProcessor/BackgroundTaskOptions.cs @@ -1,4 +1,4 @@ -namespace eShop.Ordering.BackgroundTasks; +namespace eShop.OrderProcessor; public class BackgroundTaskOptions { diff --git a/src/Ordering.BackgroundTasks/Events/GracePeriodConfirmedIntegrationEvent.cs b/src/OrderProcessor/Events/GracePeriodConfirmedIntegrationEvent.cs similarity index 83% rename from src/Ordering.BackgroundTasks/Events/GracePeriodConfirmedIntegrationEvent.cs rename to src/OrderProcessor/Events/GracePeriodConfirmedIntegrationEvent.cs index 8844ed63..678d8c37 100644 --- a/src/Ordering.BackgroundTasks/Events/GracePeriodConfirmedIntegrationEvent.cs +++ b/src/OrderProcessor/Events/GracePeriodConfirmedIntegrationEvent.cs @@ -1,4 +1,4 @@ -namespace eShop.Ordering.BackgroundTasks.Events +namespace eShop.OrderProcessor.Events { using eShop.EventBus.Events; diff --git a/src/Ordering.BackgroundTasks/Extensions/Extensions.cs b/src/OrderProcessor/Extensions/Extensions.cs similarity index 88% rename from src/Ordering.BackgroundTasks/Extensions/Extensions.cs rename to src/OrderProcessor/Extensions/Extensions.cs index f858623e..3bf762bf 100644 --- a/src/Ordering.BackgroundTasks/Extensions/Extensions.cs +++ b/src/OrderProcessor/Extensions/Extensions.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; -using eShop.Ordering.BackgroundTasks.Events; +using eShop.OrderProcessor.Events; -namespace eShop.Ordering.BackgroundTasks.Extensions; +namespace eShop.OrderProcessor.Extensions; public static class Extensions { diff --git a/src/Ordering.BackgroundTasks/GlobalUsings.cs b/src/OrderProcessor/GlobalUsings.cs similarity index 66% rename from src/Ordering.BackgroundTasks/GlobalUsings.cs rename to src/OrderProcessor/GlobalUsings.cs index 1badd79a..cd4e45f5 100644 --- a/src/Ordering.BackgroundTasks/GlobalUsings.cs +++ b/src/OrderProcessor/GlobalUsings.cs @@ -2,6 +2,6 @@ global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Hosting; global using Microsoft.Extensions.Logging; -global using eShop.Ordering.BackgroundTasks.Extensions; -global using eShop.Ordering.BackgroundTasks.Services; +global using eShop.OrderProcessor.Extensions; +global using eShop.OrderProcessor.Services; global using eShop.ServiceDefaults; diff --git a/src/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj b/src/OrderProcessor/OrderProcessor.csproj similarity index 100% rename from src/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj rename to src/OrderProcessor/OrderProcessor.csproj diff --git a/src/Ordering.BackgroundTasks/Program.cs b/src/OrderProcessor/Program.cs similarity index 100% rename from src/Ordering.BackgroundTasks/Program.cs rename to src/OrderProcessor/Program.cs diff --git a/src/Ordering.BackgroundTasks/Properties/launchSettings.json b/src/OrderProcessor/Properties/launchSettings.json similarity index 85% rename from src/Ordering.BackgroundTasks/Properties/launchSettings.json rename to src/OrderProcessor/Properties/launchSettings.json index fa18af32..697228ca 100644 --- a/src/Ordering.BackgroundTasks/Properties/launchSettings.json +++ b/src/OrderProcessor/Properties/launchSettings.json @@ -1,6 +1,6 @@ { "profiles": { - "Ordering.BackgroundTasks": { + "OrderProcessor": { "commandName": "Project", "environmentVariables": { "DOTNET_ENVIRONMENT": "Development" diff --git a/src/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs b/src/OrderProcessor/Services/GracePeriodManagerService.cs similarity index 97% rename from src/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs rename to src/OrderProcessor/Services/GracePeriodManagerService.cs index 078389e9..a07bd1de 100644 --- a/src/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs +++ b/src/OrderProcessor/Services/GracePeriodManagerService.cs @@ -1,9 +1,9 @@ using eShop.EventBus.Abstractions; using Microsoft.Extensions.Options; using Npgsql; -using eShop.Ordering.BackgroundTasks.Events; +using eShop.OrderProcessor.Events; -namespace eShop.Ordering.BackgroundTasks.Services +namespace eShop.OrderProcessor.Services { public class GracePeriodManagerService( IOptions options, diff --git a/src/Ordering.BackgroundTasks/appsettings.Development.json b/src/OrderProcessor/appsettings.Development.json similarity index 100% rename from src/Ordering.BackgroundTasks/appsettings.Development.json rename to src/OrderProcessor/appsettings.Development.json diff --git a/src/Ordering.BackgroundTasks/appsettings.json b/src/OrderProcessor/appsettings.json similarity index 85% rename from src/Ordering.BackgroundTasks/appsettings.json rename to src/OrderProcessor/appsettings.json index 6c1a9c09..ae825451 100644 --- a/src/Ordering.BackgroundTasks/appsettings.json +++ b/src/OrderProcessor/appsettings.json @@ -9,7 +9,7 @@ "EventBus": "amqp://localhost" }, "EventBus": { - "SubscriptionClientName": "BackgroundTasks" + "SubscriptionClientName": "OrderProcessor" }, "BackgroundTaskOptions": { "GracePeriodTime": "1", diff --git a/src/Payment.API/GlobalUsings.cs b/src/Payment.API/GlobalUsings.cs deleted file mode 100644 index 8124bd8b..00000000 --- a/src/Payment.API/GlobalUsings.cs +++ /dev/null @@ -1,7 +0,0 @@ -global using eShop.EventBus.Abstractions; -global using eShop.EventBus.Events; -global using eShop.Payment.API; -global using eShop.Payment.API.IntegrationEvents.EventHandling; -global using eShop.Payment.API.IntegrationEvents.Events; -global using Microsoft.Extensions.Options; -global using eShop.ServiceDefaults; diff --git a/src/PaymentProcessor/GlobalUsings.cs b/src/PaymentProcessor/GlobalUsings.cs new file mode 100644 index 00000000..fd182543 --- /dev/null +++ b/src/PaymentProcessor/GlobalUsings.cs @@ -0,0 +1,7 @@ +global using eShop.EventBus.Abstractions; +global using eShop.EventBus.Events; +global using eShop.PaymentProcessor; +global using eShop.PaymentProcessor.IntegrationEvents.EventHandling; +global using eShop.PaymentProcessor.IntegrationEvents.Events; +global using Microsoft.Extensions.Options; +global using eShop.ServiceDefaults; diff --git a/src/Payment.API/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs b/src/PaymentProcessor/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs similarity index 95% rename from src/Payment.API/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs rename to src/PaymentProcessor/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs index 02e622f7..fa00f89d 100644 --- a/src/Payment.API/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs +++ b/src/PaymentProcessor/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs @@ -1,4 +1,4 @@ -namespace eShop.Payment.API.IntegrationEvents.EventHandling; +namespace eShop.PaymentProcessor.IntegrationEvents.EventHandling; public class OrderStatusChangedToStockConfirmedIntegrationEventHandler( IEventBus eventBus, diff --git a/src/Payment.API/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs b/src/PaymentProcessor/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs similarity index 57% rename from src/Payment.API/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs rename to src/PaymentProcessor/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs index 63d3f3d8..9f3858ca 100644 --- a/src/Payment.API/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs +++ b/src/PaymentProcessor/IntegrationEvents/Events/OrderPaymentFailedIntegrationEvent.cs @@ -1,3 +1,3 @@ -namespace eShop.Payment.API.IntegrationEvents.Events; +namespace eShop.PaymentProcessor.IntegrationEvents.Events; public record OrderPaymentFailedIntegrationEvent(int OrderId) : IntegrationEvent; diff --git a/src/Payment.API/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs b/src/PaymentProcessor/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs similarity index 58% rename from src/Payment.API/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs rename to src/PaymentProcessor/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs index 90fc220b..b38d436a 100644 --- a/src/Payment.API/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs +++ b/src/PaymentProcessor/IntegrationEvents/Events/OrderPaymentSucceededIntegrationEvent.cs @@ -1,3 +1,3 @@ -namespace eShop.Payment.API.IntegrationEvents.Events; +namespace eShop.PaymentProcessor.IntegrationEvents.Events; public record OrderPaymentSucceededIntegrationEvent(int OrderId) : IntegrationEvent; diff --git a/src/Payment.API/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs b/src/PaymentProcessor/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs similarity index 61% rename from src/Payment.API/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs rename to src/PaymentProcessor/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs index 0af26426..4c349523 100644 --- a/src/Payment.API/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs +++ b/src/PaymentProcessor/IntegrationEvents/Events/OrderStatusChangedToStockConfirmedIntegrationEvent.cs @@ -1,3 +1,3 @@ -namespace eShop.Payment.API.IntegrationEvents.Events; +namespace eShop.PaymentProcessor.IntegrationEvents.Events; public record OrderStatusChangedToStockConfirmedIntegrationEvent(int OrderId) : IntegrationEvent; diff --git a/src/Payment.API/PaymentOptions.cs b/src/PaymentProcessor/PaymentOptions.cs similarity index 68% rename from src/Payment.API/PaymentOptions.cs rename to src/PaymentProcessor/PaymentOptions.cs index 558e0273..1f33180d 100644 --- a/src/Payment.API/PaymentOptions.cs +++ b/src/PaymentProcessor/PaymentOptions.cs @@ -1,4 +1,4 @@ -namespace eShop.Payment.API; +namespace eShop.PaymentProcessor; public class PaymentOptions { diff --git a/src/Payment.API/Payment.API.csproj b/src/PaymentProcessor/PaymentProcessor.csproj similarity index 100% rename from src/Payment.API/Payment.API.csproj rename to src/PaymentProcessor/PaymentProcessor.csproj diff --git a/src/Payment.API/Program.cs b/src/PaymentProcessor/Program.cs similarity index 100% rename from src/Payment.API/Program.cs rename to src/PaymentProcessor/Program.cs diff --git a/src/Payment.API/Properties/launchSettings.json b/src/PaymentProcessor/Properties/launchSettings.json similarity index 89% rename from src/Payment.API/Properties/launchSettings.json rename to src/PaymentProcessor/Properties/launchSettings.json index 8d137d73..28aca184 100644 --- a/src/Payment.API/Properties/launchSettings.json +++ b/src/PaymentProcessor/Properties/launchSettings.json @@ -1,6 +1,6 @@ { "profiles": { - "Payment.API": { + "PaymentProcessor": { "commandName": "Project", "launchBrowser": false, "applicationUrl": "http://localhost:5226", diff --git a/src/Payment.API/appsettings.Development.json b/src/PaymentProcessor/appsettings.Development.json similarity index 100% rename from src/Payment.API/appsettings.Development.json rename to src/PaymentProcessor/appsettings.Development.json diff --git a/src/Payment.API/appsettings.json b/src/PaymentProcessor/appsettings.json similarity index 84% rename from src/Payment.API/appsettings.json rename to src/PaymentProcessor/appsettings.json index 2aa811ad..ff24dfd3 100644 --- a/src/Payment.API/appsettings.json +++ b/src/PaymentProcessor/appsettings.json @@ -9,7 +9,7 @@ "EventBus": "amqp://localhost" }, "EventBus": { - "SubscriptionClientName": "Payment" + "SubscriptionClientName": "PaymentProcessor" }, "PaymentOptions": { "PaymentSucceeded": true diff --git a/src/eShop.AppHost/Program.cs b/src/eShop.AppHost/Program.cs index f9115b06..ab39e5bd 100644 --- a/src/eShop.AppHost/Program.cs +++ b/src/eShop.AppHost/Program.cs @@ -32,11 +32,11 @@ .WithReference(orderDb) .WithEnvironmentForServiceBinding("Identity__Url", identityApi); -builder.AddProject("order-processor") +builder.AddProject("order-processor") .WithReference(rabbitMq) .WithReference(orderDb); -builder.AddProject("payment-processor") +builder.AddProject("payment-processor") .WithReference(rabbitMq); var webHooksApi = builder.AddProject("webhooks-api") diff --git a/src/eShop.AppHost/eShop.AppHost.csproj b/src/eShop.AppHost/eShop.AppHost.csproj index f7f2c041..c737854e 100644 --- a/src/eShop.AppHost/eShop.AppHost.csproj +++ b/src/eShop.AppHost/eShop.AppHost.csproj @@ -19,8 +19,8 @@ - - + +