API

IHostApplicationLifetime.ApplicationStopping

Cancellation token signaled during host shutdown.

Formal Syntax & Structure

csharp syntaxcsharp
app.Lifetime.ApplicationStopping

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.app.Lifetime.ApplicationStopping
C# & .NET Reference