14 implementations of ApplicationStopped
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
156public CancellationToken ApplicationStopped { get; }
Aspire.Hosting.Tests (3)
Dashboard\DashboardLifecycleHookTests.cs (1)
185public CancellationToken ApplicationStopped { get; }
ResourceNotificationTests.cs (1)
403public CancellationToken ApplicationStopped { get; }
Utils\TestHostApplicationLifetime.cs (1)
11public CancellationToken ApplicationStopped { get; }
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
20public CancellationToken ApplicationStopped
Microsoft.AspNetCore.Hosting (1)
Internal\ApplicationLifetime.cs (1)
47public CancellationToken ApplicationStopped => _stoppedSource.Token;
Microsoft.AspNetCore.Http.Connections.Tests (2)
ApplicationLifetime.cs (2)
20public CancellationToken ApplicationStopped => _stoppedSource.Token; 39public CancellationToken ApplicationStopped => CancellationToken.None;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
20public CancellationToken ApplicationStopped
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
92public CancellationToken ApplicationStopped { get; }
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
MockHostApplicationLifetime.cs (1)
20public CancellationToken ApplicationStopped { get; }
Microsoft.Extensions.Hosting (1)
Internal\ApplicationLifetime.cs (1)
52public CancellationToken ApplicationStopped => _stoppedSource.Token;
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
20public CancellationToken ApplicationStopped
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
20public CancellationToken ApplicationStopped
13 references to ApplicationStopped
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostApplicationLifetime.cs (1)
21public CancellationToken ApplicationStopped => _applicationLifetime.ApplicationStopped;
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostTests.cs (3)
183lifetime.ApplicationStopped.WaitHandle.WaitOne(); 339lifetime.ApplicationStopped.Register(() => 437var stopped = RegisterCallbacksThatThrow(applicationLifetime.ApplicationStopped);
Microsoft.AspNetCore.Hosting.TestSites (1)
StartupShutdown.cs (1)
26lifetime.ApplicationStopped.Register(() =>
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (2)
WebHostServiceTests.cs (2)
30() => Task.Delay(OperationTimeout, applicationLifetime.ApplicationStopped)); 44() => Task.Delay(OperationTimeout, applicationLifetime.ApplicationStopped));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestingInfrastructureInheritanceTests.cs (1)
74lifetimeService.ApplicationStopped.Register(() => { callbackCalled = true; });
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
132_lifetime.ApplicationStopped.Register(() =>
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
ApplicationLifecycleHealthCheck.cs (1)
58bool isStopped = _appLifetime.ApplicationStopped.IsCancellationRequested;
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetime.cs (3)
87ApplicationLifetime.ApplicationStopped.Register(_delayStop.Set); 145/// Triggers <see cref="IHostApplicationLifetime.ApplicationStopping"/> and waits for <see cref="IHostApplicationLifetime.ApplicationStopped"/>. 161/// Triggers <see cref="IHostApplicationLifetime.ApplicationStopping"/> and waits for <see cref="IHostApplicationLifetime.ApplicationStopped"/>.