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
44
44
if ( ! string . IsNullOrWhiteSpace ( data ) )
45
45
{
46
46
output += data + '\n ' ;
47
- tcs . TrySetResult ( ) ;
48
47
}
49
48
} ;
50
49
51
- await deployer . DeployAsync ( ) ;
50
+ var deploymentResult = await deployer . DeployAsync ( ) ;
51
+ deploymentResult . HostShutdownToken . Register ( tcs . SetResult ) ;
52
52
53
53
try
54
54
{
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public static void Main(string[] args)
14
14
var webHost = CreateWebHostBuilder ( args ) . Build ( ) ;
15
15
var applicationName = webHost . Services . GetRequiredService < IHostEnvironment > ( ) . ApplicationName ;
16
16
Console . WriteLine ( applicationName ) ;
17
- Console . ReadKey ( ) ;
18
17
}
19
18
20
19
// 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