KeyValueStoreReplica.OnOpenAsync 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.
Called on an initialized service replica to open it so that additional actions can be taken.
protected virtual System.Threading.Tasks.Task OnOpenAsync (System.Fabric.ReplicaOpenMode openMode, System.Fabric.IStatefulServicePartition partition, System.Threading.CancellationToken cancellationToken);
abstract member OnOpenAsync : System.Fabric.ReplicaOpenMode * System.Fabric.IStatefulServicePartition * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnOpenAsync : System.Fabric.ReplicaOpenMode * System.Fabric.IStatefulServicePartition * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnOpenAsync (openMode As ReplicaOpenMode, partition As IStatefulServicePartition, cancellationToken As CancellationToken) As Task
Parameters
- openMode
- ReplicaOpenMode
A ReplicaOpenMode object specifying for this replica whether it is new or recovered.
- partition
- IStatefulServicePartition
A IStatefulServicePartition object representing the stateful service partition information for this replica.
- cancellationToken
- CancellationToken
A CancellationToken object that the operation is monitoring, which can be used to notify the task of cancellation.
Returns
A Task object representing the asynchronous operation.
Applies to
Azure SDK for .NET