Κοινή χρήση μέσω


SystemdLifetime.StopAsync(CancellationToken) Method

Definition

Asynchronously stops and shuts down the host. This method is called from StopAsync(CancellationToken).

public:
 virtual System::Threading::Tasks::Task ^ StopAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

A cancellation token that indicates when stop should no longer be graceful.

Returns

A task that represents the asynchronous stop operation.

Implements

Exceptions

The cancellation token was canceled. This exception is stored into the returned task.

Applies to