diff --git a/.drone.yml b/.drone.yml index afdc316..54771d0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -83,6 +83,8 @@ steps: - mkdir -p $HOME/.kube - echo "$KUBE_CONFIG" > $HOME/.kube/config - kubectl apply -f litecharms-shop-uat.yml + - sleep 10 + - kubectl rollout restart deployment/litecharms-shop -n litecharms-shop-uat depends_on: - package diff --git a/Shop/Program.cs b/Shop/Program.cs index 9f284ee..f1481d4 100644 --- a/Shop/Program.cs +++ b/Shop/Program.cs @@ -1,4 +1,5 @@ using LiteCharms.Features.Extensions; +using LiteCharms.Features.Mediator; using Shop.Components; using static LiteCharms.Features.Email.Extensions.Constants; @@ -14,6 +15,10 @@ builder.Services.AddBlazoredToast(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddMediator(); + +builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TelemetryPipelineBehavior<,>)); +builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(LoggingPipelineBehavior<,>)); + builder.Services.AddSalesServiceBus(); builder.Services.AddGeneralServiceBus(); builder.Services.AddQuartzSchedulerClient(ShopSchedulerName, builder.Configuration); diff --git a/Shop/Shop.csproj b/Shop/Shop.csproj index 779e028..53802d3 100644 --- a/Shop/Shop.csproj +++ b/Shop/Shop.csproj @@ -17,7 +17,7 @@ - +