AgentHostApp.RunAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Start the server asynchronously.
public System.Threading.Tasks.Task RunAsync(System.Threading.CancellationToken cancellationToken = default);
member this.RunAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RunAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- cancellationToken
- CancellationToken
A token to trigger graceful shutdown.
Returns
A task that completes when the server shuts down.