Skip to content

Commit 6a5351b

Browse files
this commit refactor the web api project to use the internal ASP.NET package with middleware and reusable components
1 parent d1c3097 commit 6a5351b

6 files changed

Lines changed: 4 additions & 70 deletions

File tree

Boundaries/Comanda.Stores/Source/Comanda.Stores.WebApi/Comanda.Stores.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.12" />
17-
<PackageReference Include="Sentry.AspNetCore" Version="6.0.0" />
18-
<PackageReference Include="Scalar.AspNetCore" Version="2.12.33" />
19-
<PackageReference Include="Scalar.AspNetCore.Microsoft" Version="2.12.33" />
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.Stores/Source/Comanda.Stores.WebApi/Constants/Headers.cs

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

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

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

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

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

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

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

Boundaries/Comanda.Stores/Source/Comanda.Stores.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.Stores.WebApi.Extensions;
10-
global using Comanda.Stores.WebApi.Constants;
11-
global using Comanda.Stores.WebApi.Middlewares;
1210
global using Comanda.Stores.Domain.Errors;
1311

1412
global using Comanda.Stores.Application.Payloads.Establishment;
@@ -25,10 +23,12 @@
2523

2624
global using Comanda.Stores.CrossCutting.Configurations;
2725

26+
global using Comanda.Internal.AspNet.Middlewares;
27+
global using Comanda.Internal.AspNet.Constants;
28+
2829
global using HttpsRichardy.Dispatcher.Contracts;
2930
global using HttpsRichardy.Federation.Sdk.Extensions;
3031

3132
global using Scalar.AspNetCore;
3233
global using Serilog;
33-
global using Serilog.Context;
3434
global using FluentValidation.AspNetCore;

0 commit comments

Comments
 (0)