21 implementations of StopAsync
Aspire.Hosting (2)
Dashboard\DashboardServiceHost.cs (1)
215async Task IHostedService.StopAsync(CancellationToken cancellationToken)
Dcp\DcpHostService.cs (1)
104public async Task StopAsync(CancellationToken cancellationToken = default)
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)
189public async Task StopAsync(CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.Tests (5)
WebHostBuilderTests.cs (3)
1439public Task StopAsync(CancellationToken cancellationToken) 1533public Task StopAsync(CancellationToken cancellationToken) 1550public Task StopAsync(CancellationToken cancellationToken)
WebHostTests.cs (2)
1168public Task StopAsync(CancellationToken token) 1198public 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.DependencyInjection.AutoActivation (1)
AutoActivationHostedService.cs (1)
39public 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)
63public virtual 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)
261service.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);