Skip to content

Commit 037bd90

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

7 files changed

Lines changed: 4 additions & 77 deletions

File tree

Boundaries/Comanda.Orders/Source/Comanda.Orders.WebApi/Comanda.Orders.WebApi.csproj

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

1414
<ItemGroup>
15-
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />
16-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
17-
<PackageReference Include="Scalar.AspNetCore" Version="2.12.7" />
18-
<PackageReference Include="Scalar.AspNetCore.Microsoft" Version="2.12.7" />
19-
<PackageReference Include="Sentry.AspNetCore" Version="6.0.0" />
20-
<PackageReference Include="Sentry.Serilog" Version="6.0.0" />
21-
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
22-
<PackageReference Include="Serilog.Sinks.Seq" Version="9.0.0" />
23-
<PackageReference Include="HttpsRichardy.Federation.Sdk" Version="4.2.0" />
15+
<PackageReference Include="Comanda.Internal.AspNet" Version="0.69.8" />
2416
</ItemGroup>
2517

2618
<ItemGroup>

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

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

Boundaries/Comanda.Orders/Source/Comanda.Orders.WebApi/Constants/SecurityHeaders.cs

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

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

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

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

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
global using Microsoft.OpenApi.Models;
88

99
global using Comanda.Orders.WebApi.Extensions;
10-
global using Comanda.Orders.WebApi.Constants;
11-
global using Comanda.Orders.WebApi.Middlewares;
1210
global using Comanda.Orders.Domain.Errors;
1311

1412
global using Comanda.Orders.Application.Payloads.Order;
@@ -17,10 +15,12 @@
1715
global using Comanda.Orders.Infrastructure.IoC.Extensions;
1816
global using Comanda.Orders.CrossCutting.Configurations;
1917

18+
global using Comanda.Internal.AspNet.Middlewares;
19+
global using Comanda.Internal.AspNet.Constants;
20+
2021
global using HttpsRichardy.Dispatcher.Contracts;
2122
global using HttpsRichardy.Federation.Sdk.Extensions;
2223

2324
global using Scalar.AspNetCore;
2425
global using Serilog;
25-
global using Serilog.Context;
2626
global using FluentValidation.AspNetCore;

Boundaries/Comanda.Orders/nuget.config

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

0 commit comments

Comments
 (0)