Skip to content

Commit

Permalink
Rename projects (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
halilkocaoz authored Nov 15, 2023
1 parent 1e803b0 commit 2e7babf
Show file tree
Hide file tree
Showing 28 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions build/acr-build/queue-all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion build/multiarch-manifests/create-manifests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions eShop.Web.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions eShop.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace eShop.Ordering.BackgroundTasks;
namespace eShop.OrderProcessor;

public class BackgroundTaskOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace eShop.Ordering.BackgroundTasks.Events
namespace eShop.OrderProcessor.Events
{
using eShop.EventBus.Events;

Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"Ordering.BackgroundTasks": {
"OrderProcessor": {
"commandName": "Project",
"environmentVariables": {
"DOTNET_ENVIRONMENT": "Development"
Expand Down
Original file line number Diff line number Diff line change
@@ -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<BackgroundTaskOptions> options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"EventBus": "amqp://localhost"
},
"EventBus": {
"SubscriptionClientName": "BackgroundTasks"
"SubscriptionClientName": "OrderProcessor"
},
"BackgroundTaskOptions": {
"GracePeriodTime": "1",
Expand Down
7 changes: 0 additions & 7 deletions src/Payment.API/GlobalUsings.cs

This file was deleted.

7 changes: 7 additions & 0 deletions src/PaymentProcessor/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace eShop.Payment.API.IntegrationEvents.EventHandling;
namespace eShop.PaymentProcessor.IntegrationEvents.EventHandling;

public class OrderStatusChangedToStockConfirmedIntegrationEventHandler(
IEventBus eventBus,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace eShop.Payment.API.IntegrationEvents.Events;
namespace eShop.PaymentProcessor.IntegrationEvents.Events;

public record OrderPaymentFailedIntegrationEvent(int OrderId) : IntegrationEvent;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace eShop.Payment.API.IntegrationEvents.Events;
namespace eShop.PaymentProcessor.IntegrationEvents.Events;

public record OrderPaymentSucceededIntegrationEvent(int OrderId) : IntegrationEvent;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace eShop.Payment.API.IntegrationEvents.Events;
namespace eShop.PaymentProcessor.IntegrationEvents.Events;

public record OrderStatusChangedToStockConfirmedIntegrationEvent(int OrderId) : IntegrationEvent;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace eShop.Payment.API;
namespace eShop.PaymentProcessor;

public class PaymentOptions
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"Payment.API": {
"PaymentProcessor": {
"commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:5226",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"EventBus": "amqp://localhost"
},
"EventBus": {
"SubscriptionClientName": "Payment"
"SubscriptionClientName": "PaymentProcessor"
},
"PaymentOptions": {
"PaymentSucceeded": true
Expand Down
4 changes: 2 additions & 2 deletions src/eShop.AppHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
.WithReference(orderDb)
.WithEnvironmentForServiceBinding("Identity__Url", identityApi);

builder.AddProject<Projects.Ordering_BackgroundTasks>("order-processor")
builder.AddProject<Projects.OrderProcessor>("order-processor")
.WithReference(rabbitMq)
.WithReference(orderDb);

builder.AddProject<Projects.Payment_API>("payment-processor")
builder.AddProject<Projects.PaymentProcessor>("payment-processor")
.WithReference(rabbitMq);

var webHooksApi = builder.AddProject<Projects.Webhooks_API>("webhooks-api")
Expand Down
4 changes: 2 additions & 2 deletions src/eShop.AppHost/eShop.AppHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<ProjectReference Include="..\Catalog.API\Catalog.API.csproj" />
<ProjectReference Include="..\Identity.API\Identity.API.csproj" />
<ProjectReference Include="..\Ordering.API\Ordering.API.csproj" />
<ProjectReference Include="..\Ordering.BackgroundTasks\Ordering.BackgroundTasks.csproj" />
<ProjectReference Include="..\Payment.API\Payment.API.csproj" />
<ProjectReference Include="..\OrderProcessor\OrderProcessor.csproj" />
<ProjectReference Include="..\PaymentProcessor\PaymentProcessor.csproj" />
<ProjectReference Include="..\Webhooks.API\Webhooks.API.csproj" />
<ProjectReference Include="..\WebApp\WebApp.csproj" />
<ProjectReference Include="..\WebhookClient\WebhookClient.csproj" />
Expand Down

0 comments on commit 2e7babf

Please sign in to comment.