Skip to content

Commit 964e598

Browse files
author
vp
committed
Nuget updates
1 parent 4367978 commit 964e598

2 files changed

Lines changed: 10 additions & 51 deletions

File tree

Directory.Packages.props

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageVersion Include="BenchmarkDotNet" Version="0.15.4" />
8-
<PackageVersion Include="BridgingIT.DevKit.Application.JobScheduling" Version="9.0.26" />
9-
<PackageVersion Include="BridgingIT.DevKit.Common.Mapping" Version="9.0.26" />
10-
<PackageVersion Include="BridgingIT.DevKit.Common.Utilities.Xunit" Version="9.0.26" />
11-
<PackageVersion Include="BridgingIT.DevKit.Domain" Version="9.0.26" />
12-
<PackageVersion Include="BridgingIT.DevKit.Domain.CodeGen" Version="9.0.26" />
8+
<PackageVersion Include="BridgingIT.DevKit.Application.JobScheduling" Version="9.0.28-preview.0.1" />
9+
<PackageVersion Include="BridgingIT.DevKit.Common.Mapping" Version="9.0.28-preview.0.1" />
10+
<PackageVersion Include="BridgingIT.DevKit.Common.Utilities.Xunit" Version="9.0.28-preview.0.1" />
11+
<PackageVersion Include="BridgingIT.DevKit.Domain" Version="9.0.28-preview.0.1" />
12+
<PackageVersion Include="BridgingIT.DevKit.Domain.CodeGen" Version="9.0.28-preview.0.1" />
1313
<PackageVersion Include="BridgingIT.DevKit.Infrastructure.EntityFramework" Version="9.0.26" />
14-
<PackageVersion Include="BridgingIT.DevKit.Infrastructure.EntityFramework.SqlServer" Version="9.0.26" />
15-
<PackageVersion Include="BridgingIT.DevKit.Presentation.Web" Version="9.0.26" />
16-
<PackageVersion Include="BridgingIT.DevKit.Presentation.Serilog" Version="9.0.26" />
14+
<PackageVersion Include="BridgingIT.DevKit.Infrastructure.EntityFramework.SqlServer" Version="9.0.28-preview.0.1" />
15+
<PackageVersion Include="BridgingIT.DevKit.Presentation.Web" Version="9.0.28-preview.0.1" />
16+
<PackageVersion Include="BridgingIT.DevKit.Presentation.Serilog" Version="9.0.28-preview.0.1" />
1717
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
1818
<PackageVersion Include="Dumpify" Version="0.6.6" />
1919
<PackageVersion Include="FluentAssertions.Web" Version="1.9.5" />

src/Presentation.Web.Server/Program.cs

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
app.MapControllers();
106106
app.MapEndpoints();
107107

108+
app.UseConsoleCommandsInteractiveStats();
108109
app.UseConsoleCommandsInteractive();
109110

110111
app.Run();
@@ -116,46 +117,4 @@ namespace BridgingIT.DevKit.Examples.GettingStarted.Presentation.Web.Server
116117
// this partial class is needed to set the accessibilty for the Program class to public
117118
// needed for endpoint testing when using the webapplicationfactory https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-7.0#basic-tests-with-the-default-webapplicationfactory
118119
}
119-
}
120-
121-
public class TracingBehavior<TRequest, TResponse>(
122-
ILoggerFactory loggerFactory,
123-
ActivitySource activitySource = null) : PipelineBehaviorBase<TRequest, TResponse>(loggerFactory)
124-
where TRequest : class
125-
where TResponse : BridgingIT.DevKit.Common.IResult
126-
{
127-
private readonly ActivitySource activitySource = activitySource;
128-
129-
protected override bool CanProcess(TRequest request, Type handlerType)
130-
{
131-
return true; // Always process, no attribute required
132-
}
133-
134-
protected override async Task<TResponse> Process(
135-
TRequest request,
136-
Type handlerType,
137-
Func<Task<TResponse>> next,
138-
CancellationToken cancellationToken)
139-
{
140-
var requestType = typeof(TRequest).PrettyName();
141-
142-
return await this.activitySource.StartActvity($"REQUEST {requestType}",
143-
async (a, c) =>
144-
{
145-
a?.AddEvent(new ActivityEvent($"processing (type={requestType}, id={handlerType})"));
146-
147-
return await next();
148-
},
149-
tags: new Dictionary<string, string>
150-
{
151-
//["command.request_id"] = command.RequestId.ToString("N"),
152-
["command.request_type"] = requestType
153-
},
154-
baggages: new Dictionary<string, string>
155-
{
156-
//["command.id"] = command.RequestId.ToString("N"),
157-
["command.type"] = requestType
158-
},
159-
cancellationToken: cancellationToken);
160-
}
161-
}
120+
}

0 commit comments

Comments
 (0)