We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbba73 commit 2f5437eCopy full SHA for 2f5437e
src/BenchmarksApps/TLS/HttpSys/Program.cs
@@ -44,7 +44,7 @@
44
45
if (mTlsEnabled)
46
{
47
- var hostAppLifetime = app.Services.GetService<IHostApplicationLifetime>();
+ var hostAppLifetime = app.Services.GetRequiredService<IHostApplicationLifetime>();
48
hostAppLifetime!.ApplicationStopping.Register(OnShutdown);
49
50
void OnShutdown()
0 commit comments