Dela via


KeyValueStoreReplica.OpenAsync Method

Definition

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