Bewerken

Delen via


ILifecycleObserver.OnStop(CancellationToken) Method

Definition

Handle stop notifications.

public System.Threading.Tasks.Task OnStop(System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task OnStop(System.Threading.CancellationToken ct);
abstract member OnStop : System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member OnStop : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OnStop (Optional cancellationToken As CancellationToken = Nothing) As Task
Public Function OnStop (ct As CancellationToken) As Task

Parameters

cancellationTokenct
CancellationToken

The cancellation token which indicates that the operation should be stopped promptly when it is canceled.

Returns

A Task which represents the operation.

Applies to