Skip to content

Commit d1c3097

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

6 files changed

Lines changed: 4 additions & 70 deletions

File tree

Boundaries/Comanda.Subscriptions/Source/Comanda.Subscriptions.WebApi/Comanda.Subscriptions.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="Scalar.AspNetCore" Version="2.12.27" />
18-
<PackageReference Include="Scalar.AspNetCore.Microsoft" Version="2.12.27" />
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.Subscriptions/Source/Comanda.Subscriptions.WebApi/Constants/Headers.cs

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

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

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

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

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

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

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

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

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

77
global using Comanda.Subscriptions.WebApi.Extensions;
8-
global using Comanda.Subscriptions.WebApi.Constants;
9-
global using Comanda.Subscriptions.WebApi.Middlewares;
108
global using Comanda.Subscriptions.Domain.Errors;
119

1210
global using Comanda.Subscriptions.Application.Payloads.Traceability;
@@ -15,10 +13,12 @@
1513
global using Comanda.Subscriptions.Infrastructure.IoC.Extensions;
1614
global using Comanda.Subscriptions.CrossCutting.Configurations;
1715

16+
global using Comanda.Internal.AspNet.Middlewares;
17+
global using Comanda.Internal.AspNet.Constants;
18+
1819
global using HttpsRichardy.Dispatcher.Contracts;
1920
global using HttpsRichardy.Federation.Sdk.Extensions;
2021

2122
global using Scalar.AspNetCore;
2223
global using Serilog;
23-
global using Serilog.Context;
2424
global using FluentValidation.AspNetCore;

0 commit comments

Comments
 (0)