2 implementations of StopAsync
Microsoft.AspNetCore.Hosting (1)
Internal\WebHost.cs (1)
279public async Task StopAsync(CancellationToken cancellationToken = default)
Microsoft.AspNetCore.Hosting.Tests (1)
Fakes\GenericWebHost.cs (1)
30public Task StopAsync(CancellationToken cancellationToken = default) => _host.StopAsync(cancellationToken);
22 references to StopAsync
Interop.FunctionalTests (1)
Http3\Http3TlsTests.cs (1)
388await host.StopAsync();
Microsoft.AspNetCore.Hosting (2)
WebHostExtensions.cs (2)
27await host.StopAsync(cts.Token); 167await host.StopAsync();
Microsoft.AspNetCore.Hosting.Tests (12)
WebHostBuilderTests.cs (3)
1356var stopEx = await Assert.ThrowsAnyAsync<Exception>(() => host.StopAsync()); 1382var stopEx = await Assert.ThrowsAnyAsync<Exception>(() => host.StopAsync()); 1410await host.StopAsync();
WebHostTests.AsyncDisposable.cs (1)
26await host.StopAsync();
WebHostTests.cs (8)
226var task = host.StopAsync(cts.Token); 262var task = host.StopAsync(); 300var task = host.StopAsync(cts.Token); 390await host.StopAsync(); 538await host.StopAsync(); 560await host.StopAsync(); 607await host.StopAsync(); 1055await host.StopAsync();
Microsoft.AspNetCore.Hosting.WindowsServices (1)
WebHostService.cs (1)
67_host.StopAsync().GetAwaiter().GetResult();
Microsoft.AspNetCore.Server.Kestrel.Tests (6)
HttpsConfigurationTests.cs (6)
52await host.StopAsync(); 112await host.StopAsync(); 143await host.StopAsync(); 182await host.StopAsync(); 206await host.StopAsync(); 232await host.StopAsync();