19 implementations of StopAsync
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
485public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
InProcessWebSite (1)
DummyServer.cs (1)
23public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.DataProtection.Tests (1)
HostingTests.cs (1)
128public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.Hosting.Tests (4)
GenericWebHostBuilderTests.cs (1)
249public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
WebHostBuilderTests.cs (2)
1467public Task StopAsync(CancellationToken cancellationToken) 1605public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
WebHostTests.cs (1)
1270public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
75public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (1)
WebHostServiceTests.cs (1)
73public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
220public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
360public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.AspNetCore.Server.HttpSys (1)
MessagePump.cs (1)
174public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpServer.cs (1)
118public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\KestrelServerImpl.cs (1)
243public async Task StopAsync(CancellationToken cancellationToken)
KestrelServer.cs (1)
60public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
260Task IServer.StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
341public Task StopAsync(CancellationToken cancellationToken) 3126public Task StopAsync(CancellationToken cancellationToken)
Microsoft.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
220public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
24 references to StopAsync
InProcessWebSite (2)
Startup.cs (2)
1006await server.StopAsync(default); 1015await server.StopAsync(cts.Token);
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostService.cs (1)
201await Server.StopAsync(cancellationToken);
Internal\WebHost.cs (1)
299await Server.StopAsync(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostTests.cs (3)
206server.Setup(s => s.StopAsync(It.IsAny<CancellationToken>())) 245server.Setup(s => s.StopAsync(It.IsAny<CancellationToken>())) 281server.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));