IApplicationLifetime.ApplicationStopped Property

Definition

Gets a cancellation token. Triggered when the application host is performing a graceful shutdown. All requests should be complete at this point. Shutdown will block until this event completes.

public System.Threading.CancellationToken ApplicationStopped { get; }

Property Value

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)