ILifecycleObserver.OnStop(CancellationToken) 方法

定义

处理停止通知。

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

参数

ctcancellationToken
CancellationToken

返回

一个 Task ,它表示操作。

适用于