VolatileActorStateProvider.IStateProviderReplica.OpenAsync(ReplicaOpenMode, IStatefulServicePartition, 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.
Open the state provider replica for use.
System.Threading.Tasks.Task<System.Fabric.IReplicator> IStateProviderReplica.OpenAsync (System.Fabric.ReplicaOpenMode openMode, System.Fabric.IStatefulServicePartition partition, System.Threading.CancellationToken cancellationToken);
Parameters
- openMode
- ReplicaOpenMode
Indicates whether this is a new or existing replica.
- partition
- IStatefulServicePartition
The partition this replica belongs to.
- cancellationToken
- System.Threading.CancellationToken
The token to monitor for cancellation requests.
Returns
- System.Threading.Tasks.Task<IReplicator>
Task that represents the asynchronous open operation. The result contains the replicator responsible for replicating state between other state provider replicas in the partition.
Implements
Remarks
Extended state provider initialization tasks can be started at this time.