API
IHost.StopAsync
Requests and awaits host shutdown.
Formal Syntax & Structure
csharp syntaxcsharp
await app.StopAsync(token)Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.await app.StopAsync(token)Requests and awaits host shutdown.
await app.StopAsync(token)// Documentary fragment; see linked lesson for context.await app.StopAsync(token)