File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
perf/benchmarkapps/GrpcAspNetCoreServer Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1616
1717#endregion
1818
19+ using System ;
1920using System . IO ;
2021using System . Text ;
2122using Grpc . Testing ;
2223using Microsoft . AspNetCore . Builder ;
2324using Microsoft . AspNetCore . Http ;
2425using Microsoft . Extensions . DependencyInjection ;
26+ using Microsoft . Extensions . Hosting ;
2527using Newtonsoft . Json ;
2628
2729namespace GrpcAspNetCoreServer
@@ -34,8 +36,11 @@ public void ConfigureServices(IServiceCollection services)
3436 services . AddControllers ( ) ;
3537 }
3638
37- public void Configure ( IApplicationBuilder app )
39+ public void Configure ( IApplicationBuilder app , IHostApplicationLifetime applicationLifetime )
3840 {
41+ // Required to notify performance infrastructure that it can begin benchmarks
42+ applicationLifetime . ApplicationStarted . Register ( ( ) => Console . WriteLine ( "Application started." ) ) ;
43+
3944 app . UseRouting ( ) ;
4045 app . UseEndpoints ( endpoints =>
4146 {
You can’t perform that action at this time.
0 commit comments