23 implementations of StopAsync
Aspire.Hosting (3)
Dashboard\DashboardServiceHost.cs (1)
219async Task IHostedService.StopAsync(CancellationToken cancellationToken)
DistributedApplicationLifecycle.cs (1)
55public Task StopAsync(CancellationToken cancellationToken)
Orchestrator\OrchestratorHostService.cs (1)
44public async Task StopAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (1)
AppHostSmokeTests.cs (1)
118public Task StopAsync(CancellationToken cancellationToken)
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.DataProtection (1)
Internal\DataProtectionHostedService.cs (1)
49public Task StopAsync(CancellationToken token) => Task.CompletedTask;
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostService.cs (1)
197public async Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.Tests (5)
WebHostBuilderTests.cs (3)
1443public Task StopAsync(CancellationToken cancellationToken) 1543public Task StopAsync(CancellationToken cancellationToken) 1560public Task StopAsync(CancellationToken cancellationToken)
WebHostTests.cs (2)
1172public Task StopAsync(CancellationToken token) 1202public Task StopAsync(CancellationToken token)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
49public Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
319public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckPublisherHostedService.cs (1)
76public Task StopAsync(CancellationToken cancellationToken = default)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DependencyInjection\ServiceCollectionExtensionsTest.cs (1)
90public Task StopAsync(CancellationToken cancellationToken)
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
57public virtual async Task StopAsync(CancellationToken cancellationToken)
Nats.Backend (1)
Program.cs (1)
37public async Task StopAsync(CancellationToken cancellationToken)
9 references to StopAsync
Microsoft.AspNetCore.Hosting (1)
Internal\HostedServiceExecutor.cs (1)
33await service.StopAsync(token);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
260service.StopAsync(token)).ConfigureAwait(false);
Microsoft.Extensions.Hosting.Abstractions (4)
BackgroundService.cs (1)
30/// <param name="stoppingToken">Triggered when <see cref="IHostedService.StopAsync(CancellationToken)"/> is called.</param>
IHostedLifecycleService.cs (3)
12/// <see cref="IHostedService.StopAsync(CancellationToken)"/>. 31/// Triggered before <see cref="IHostedService.StopAsync(CancellationToken)"/>. 38/// Triggered after <see cref="IHostedService.StopAsync(CancellationToken)"/>.
Microsoft.Extensions.Hosting.Testing (2)
FakeHostingExtensions.cs (1)
42await service.StopAsync(cancellationToken).ConfigureAwait(false);
HostTerminatorService.cs (1)
40/// <param name="stoppingToken">Triggered when <see cref="IHostedService.StopAsync(CancellationToken)"/> is called.</param>
Microsoft.Extensions.Hosting.Testing.Tests (1)
HostingFakesExtensionsTests.cs (1)
32serviceMock.Setup(x => x.StopAsync(tokenSource.Token)).Returns(Task.CompletedTask);