Skip to content

Commit efb402e

Browse files
authored
Merge pull request #46 from PandaTechAM/development
nuget updates
2 parents d81b8ad + ff7e3cc commit efb402e

File tree

6 files changed

+25
-17
lines changed

6 files changed

+25
-17
lines changed

Shared.Kernel.Demo/Shared.Kernel.Demo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.3" />
10+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

src/SharedKernel/OpenApi/OpenApiExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static WebApplication UseOpenApi(this WebApplication app)
5555
app.MapOpenApi();
5656
app.MapSwaggerUiAssetEndpoint();
5757
app.MapSwaggerUi(openApiConfiguration);
58-
app.MapScalarUi();
58+
app.MapScalarUi(openApiConfiguration);
5959
return app;
6060
}
6161

src/SharedKernel/OpenApi/UiExtensions.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,21 @@ internal static WebApplication MapSwaggerUi(this WebApplication app, OpenApiConf
3434
return app;
3535
}
3636

37-
internal static WebApplication MapScalarUi(this WebApplication app)
37+
internal static WebApplication MapScalarUi(this WebApplication app, OpenApiConfig openApiConfigConfiguration)
3838
{
3939
app.MapScalarApiReference(options =>
4040
{
4141
options.Theme = ScalarTheme.Kepler;
42-
4342
options.Favicon = "/swagger-resources/favicon.svg";
43+
44+
foreach (var document in openApiConfigConfiguration.Documents)
45+
{
46+
options.AddDocument(
47+
document.GroupName,
48+
document.Title,
49+
document.GetEndpointUrl()
50+
);
51+
}
4452
});
4553
return app;
4654
}

src/SharedKernel/SharedKernel.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,32 @@
3333
<PackageReference Include="FluentDateTime" Version="3.0.0" />
3434
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" />
3535
<PackageReference Include="HtmlSanitizer" Version="9.0.876" />
36-
<PackageReference Include="MediatR" Version="12.4.1" />
37-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.3" />
38-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.3" />
39-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="9.0.3" />
40-
<PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="9.0.3" />
36+
<PackageReference Include="MediatR" Version="12.5.0" />
37+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
38+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.4" />
39+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="9.0.4" />
40+
<PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="9.0.4" />
4141
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.3" />
42-
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="9.3.0" />
42+
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="9.4.0" />
4343
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.11.2" />
4444
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.8.0-rc.1" />
4545
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.11.2" />
4646
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.11.1" />
4747
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.12" />
4848
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.11.1" />
4949
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.11.1" />
50-
<PackageReference Include="Pandatech.Crypto" Version="4.1.2" />
50+
<PackageReference Include="Pandatech.Crypto" Version="5.0.0" />
5151
<PackageReference Include="Pandatech.DistributedCache" Version="4.0.7" />
5252
<PackageReference Include="PandaTech.FileExporter" Version="4.0.2" />
5353
<PackageReference Include="Pandatech.FluentMinimalApiMapper" Version="2.0.2" />
5454
<PackageReference Include="Pandatech.PandaVaultClient" Version="4.0.4" />
5555
<PackageReference Include="Pandatech.RegexBox" Version="3.0.1" />
5656
<PackageReference Include="Pandatech.ResponseCrafter" Version="5.1.9" />
57-
<PackageReference Include="Scalar.AspNetCore" Version="2.0.34" />
57+
<PackageReference Include="Scalar.AspNetCore" Version="2.1.11" />
5858
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
5959
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
6060
<PackageReference Include="Serilog.Sinks.Grafana.Loki" Version="8.3.0" />
61-
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.3.1" />
61+
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="8.1.1" />
6262
</ItemGroup>
6363

6464
</Project>

src/SharedKernel/ValidatorAndMediatR/Behaviors/ValidationBehaviorWithResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task<TResponse> Handle(TRequest request,
1414
{
1515
if (!validators.Any())
1616
{
17-
return await next();
17+
return await next(cancellationToken);
1818
}
1919

2020
var context = new ValidationContext<TRequest>(request);
@@ -26,7 +26,7 @@ public async Task<TResponse> Handle(TRequest request,
2626

2727
if (failures.Count == 0)
2828
{
29-
return await next();
29+
return await next(cancellationToken);
3030
}
3131

3232
var errors = failures.GroupBy(e => e.PropertyName, e => e.ErrorMessage)

src/SharedKernel/ValidatorAndMediatR/Behaviors/ValidationBehaviorWithoutResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task<TResponse> Handle(TRequest request,
1414
{
1515
if (!validators.Any())
1616
{
17-
return await next();
17+
return await next(cancellationToken);
1818
}
1919

2020
var context = new ValidationContext<TRequest>(request);
@@ -26,7 +26,7 @@ public async Task<TResponse> Handle(TRequest request,
2626

2727
if (failures.Count == 0)
2828
{
29-
return await next();
29+
return await next(cancellationToken);
3030
}
3131

3232
var errors = failures.GroupBy(e => e.PropertyName, e => e.ErrorMessage)

0 commit comments

Comments
 (0)