API
IHostedService.StopAsync
Requests a graceful stop.
Formal Syntax & Structure
csharp syntaxcsharp
Task StopAsync(CancellationToken cancellationToken)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.Task StopAsync(CancellationToken cancellationToken)