Udostępnij za pośrednictwem


DistributedApplication.StopAsync(CancellationToken) Method

Definition

Attempts to gracefully stop the program.

public virtual System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function StopAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

Returns

Applies to