Skip to content

Commit 2f5437e

Browse files
committed
address PR comment
1 parent adbba73 commit 2f5437e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarksApps/TLS/HttpSys/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
if (mTlsEnabled)
4646
{
47-
var hostAppLifetime = app.Services.GetService<IHostApplicationLifetime>();
47+
var hostAppLifetime = app.Services.GetRequiredService<IHostApplicationLifetime>();
4848
hostAppLifetime!.ApplicationStopping.Register(OnShutdown);
4949

5050
void OnShutdown()

0 commit comments

Comments
 (0)