15 implementations of StopAsync
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\DummyServer.cs (1)
23public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.DataProtection.Tests (1)
HostingTests.cs (1)
124public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.Hosting.Tests (4)
GenericWebHostBuilderTests.cs (1)
144public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
WebHostBuilderTests.cs (2)
1463public Task StopAsync(CancellationToken cancellationToken) 1595public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
WebHostTests.cs (1)
1266public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
71public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (1)
WebHostServiceTests.cs (1)
61public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.Server.HttpSys (1)
MessagePump.cs (1)
172public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpServer.cs (1)
114public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\KestrelServerImpl.cs (1)
239public async Task StopAsync(CancellationToken cancellationToken)
KestrelServer.cs (1)
58public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
255Task IServer.StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
341public Task StopAsync(CancellationToken cancellationToken) 3124public Task StopAsync(CancellationToken cancellationToken)
24 references to StopAsync
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
1006await server.StopAsync(default); 1015await server.StopAsync(cts.Token);
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostService.cs (1)
193await Server.StopAsync(cancellationToken);
Internal\WebHost.cs (1)
298await Server.StopAsync(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostTests.cs (3)
204server.Setup(s => s.StopAsync(It.IsAny<CancellationToken>())) 243server.Setup(s => s.StopAsync(It.IsAny<CancellationToken>())) 279server.Setup(s => s.StopAsync(It.IsAny<CancellationToken>()))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (17)
ServerTests.cs (17)
158await server.StopAsync(new CancellationTokenSource(TimeSpan.FromSeconds(5)).Token); 201await server.StopAsync(new CancellationTokenSource(TimeSpan.FromSeconds(5)).Token); 432var stopTask1 = server.StopAsync(cts.Token); 433var stopTask2 = server.StopAsync(cts.Token); 434var stopTask3 = server.StopAsync(cts.Token); 466var stopTask1 = server.StopAsync(cts.Token); 467var stopTask2 = server.StopAsync(cts.Token); 468var stopTask3 = server.StopAsync(cts.Token); 503var stopTask1 = server.StopAsync(cts.Token); 504var stopTask2 = server.StopAsync(new CancellationTokenSource().Token); 505var stopTask3 = server.StopAsync(new CancellationTokenSource().Token); 540var stopTask1 = server.StopAsync(new CancellationTokenSource().Token); 541var stopTask2 = server.StopAsync(cts.Token); 542var stopTask3 = server.StopAsync(new CancellationTokenSource().Token); 578stopTask1 = server.StopAsync(new CancellationTokenSource().Token); 579stopTask2 = server.StopAsync(new CancellationTokenSource().Token); 594await server.StopAsync(default(CancellationToken)).TimeoutAfter(TimeSpan.FromSeconds(10));