共用方式為


ILifecycleObserver.OnStart(CancellationToken) 方法

定義

處理開始通知。

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

參數

ctcancellationToken
CancellationToken

傳回

Task 表示作業。

適用於