Skip to content

Commit b0d3a68

Browse files
this commit refactor the web api project to use the internal ASP.NET package with middleware and reusable components
1 parent 037bd90 commit b0d3a68

7 files changed

Lines changed: 5 additions & 86 deletions

File tree

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Comanda.Orchestrator.WebApi.csproj

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,9 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />
15+
<PackageReference Include="Comanda.Internal.AspNet" Version="0.69.8" />
1616
<PackageReference Include="Idempwanna" Version="1.0.0" />
1717
<PackageReference Include="Microsoft.AspNetCore.HeaderPropagation" Version="9.0.11" />
18-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.11" />
19-
<PackageReference Include="Scalar.AspNetCore" Version="2.12.7" />
20-
<PackageReference Include="Scalar.AspNetCore.Microsoft" Version="2.12.7" />
21-
<PackageReference Include="Sentry.AspNetCore" Version="6.0.0" />
22-
<PackageReference Include="Sentry.Serilog" Version="6.0.0" />
23-
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
24-
<PackageReference Include="Serilog.Sinks.Seq" Version="9.0.0" />
25-
<PackageReference Include="HttpsRichardy.Federation.Sdk" Version="4.2.0" />
2618
</ItemGroup>
2719

2820
<ItemGroup>

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Constants/Headers.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Constants/SecuritySchemes.cs

Lines changed: 0 additions & 7 deletions
This file was deleted.

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Interceptors/CorrelationInterceptor.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Middlewares/CorrelationMiddleware.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Middlewares/CorrelationMiddlewareExtension.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

Boundaries/Comanda.Orchestrator/Source/Comanda.Orchestrator.WebApi/Usings.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
global using Comanda.Internal.Contracts.Clients.Interfaces;
2020

2121
global using Comanda.Orchestrator.WebApi.Extensions;
22-
global using Comanda.Orchestrator.WebApi.Constants;
2322
global using Comanda.Orchestrator.WebApi.Middlewares;
24-
global using Comanda.Orchestrator.WebApi.Interceptors;
2523
global using Comanda.Orchestrator.WebApi.Providers;
2624

2725
global using Comanda.Orchestrator.Application.Payloads.Payments;
@@ -31,6 +29,10 @@
3129
global using Comanda.Orchestrator.CrossCutting.Configurations;
3230
global using Comanda.Orchestrator.CrossCutting.Constants;
3331

32+
global using Comanda.Internal.AspNet.Middlewares;
33+
global using Comanda.Internal.AspNet.Interceptors;
34+
global using Comanda.Internal.AspNet.Constants;
35+
3436
global using HttpsRichardy.Dispatcher.Contracts;
3537
global using HttpsRichardy.Internal.Essentials.Concepts;
3638

0 commit comments

Comments
 (0)