ILifecycleObserver.OnStart(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Handle start notifications.
public System.Threading.Tasks.Task OnStart(System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task OnStart(System.Threading.CancellationToken ct);
abstract member OnStart : System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member OnStart : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OnStart (Optional cancellationToken As CancellationToken = Nothing) As Task
Public Function OnStart (ct As CancellationToken) As Task
Parameters
- cancellationTokenct
- CancellationToken
The cancellation token which indicates that the operation should be aborted promptly when it is canceled.
Returns
A Task which represents the operation.