StatelessService.OnOpenAsync(CancellationToken) Method

Definition

This method is called as the final step of opening the service. Override this method to be notified that Open has completed for this instance's internal components.

For information about Reliable Services life cycle please see https://docs.microsoft.com/azure/service-fabric/service-fabric-reliable-services-lifecycle

protected virtual System.Threading.Tasks.Task OnOpenAsync (System.Threading.CancellationToken cancellationToken);
abstract member OnOpenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnOpenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

cancellationToken
System.Threading.CancellationToken

Cancellation token to monitor for cancellation requests.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task that represents outstanding operation.

Implements

Microsoft.ServiceFabric.Services.Runtime.IStatelessUserServiceInstance.OnOpenAsync(System.Threading.CancellationToken)

Applies to