KeyValueStoreReplica.OpenAsync 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.
Opens the replica and its replicator in preparation for coming online in a replica set.
public System.Threading.Tasks.Task<System.Fabric.IReplicator> OpenAsync (System.Fabric.ReplicaOpenMode openMode, System.Fabric.IStatefulServicePartition partition, System.Threading.CancellationToken cancellationToken);
abstract member OpenAsync : System.Fabric.ReplicaOpenMode * System.Fabric.IStatefulServicePartition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.IReplicator>
override this.OpenAsync : System.Fabric.ReplicaOpenMode * System.Fabric.IStatefulServicePartition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.IReplicator>
Public Function OpenAsync (openMode As ReplicaOpenMode, partition As IStatefulServicePartition, cancellationToken As CancellationToken) As Task(Of IReplicator)
Parameters
- openMode
- ReplicaOpenMode
Specifies the context under which this replica is being opened.
- partition
- IStatefulServicePartition
Contains information describing the replica set to which this replica belongs.
- cancellationToken
- CancellationToken
Currently unused. Reserved for future use.
Returns
A Task to indicate completion of the open Task<TResult>.
Implements
Remarks
This method does not need to be called explicitly if the application replica derives from KeyValueStoreReplica, which is the recommended pattern. In this case, the application replica should override OnOpenAsync instead.
Applies to
Azure SDK for .NET