File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
testassets/IStartupInjectionAssemblyName Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ public async Task InjectedStartup_DefaultApplicationNameIsEntryAssembly(TestVari
4444 if ( ! string . IsNullOrWhiteSpace ( data ) )
4545 {
4646 output += data + '\n ' ;
47- tcs . TrySetResult ( ) ;
4847 }
4948 } ;
5049
51- await deployer . DeployAsync ( ) ;
50+ var deploymentResult = await deployer . DeployAsync ( ) ;
51+ deploymentResult . HostShutdownToken . Register ( tcs . SetResult ) ;
5252
5353 try
5454 {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public static void Main(string[] args)
1414 var webHost = CreateWebHostBuilder ( args ) . Build ( ) ;
1515 var applicationName = webHost . Services . GetRequiredService < IHostEnvironment > ( ) . ApplicationName ;
1616 Console . WriteLine ( applicationName ) ;
17- Console . ReadKey ( ) ;
1817 }
1918
2019 // Do not change the signature of this method. It's used for tests.
You can’t perform that action at this time.
0 commit comments