Udostępnij za pośrednictwem


StatefulServiceBase.OnOpenAsync(ReplicaOpenMode, CancellationToken) Method

Definition

This method is called when the replica is being opened and it is the final step of opening the service. Override this method to be notified that Open has completed for this replica'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.Fabric.ReplicaOpenMode openMode, System.Threading.CancellationToken cancellationToken);
abstract member OnOpenAsync : System.Fabric.ReplicaOpenMode * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnOpenAsync : System.Fabric.ReplicaOpenMode * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnOpenAsync (openMode As ReplicaOpenMode, cancellationToken As CancellationToken) As Task

Parameters

openMode
ReplicaOpenMode

ReplicaOpenMode for this service replica.

cancellationToken
CancellationToken

Cancellation token to monitor for cancellation requests.

Returns

A Task that represents outstanding operation.

Applies to