KeyValueStoreReplica.OnCopyComplete(KeyValueStoreEnumerator) Method

Definition

Called by the system on secondary replicas when they have finished building from the primary and are ready to start applying replication operations.

This method will only be called on secondary replicas if the KeyValueStoreReplica object was constructed with a valid KeyValueStoreReplica.SecondaryNotificationMode parameter.

protected virtual void OnCopyComplete (System.Fabric.KeyValueStoreEnumerator enumerator);
abstract member OnCopyComplete : System.Fabric.KeyValueStoreEnumerator -> unit
override this.OnCopyComplete : System.Fabric.KeyValueStoreEnumerator -> unit
Protected Overridable Sub OnCopyComplete (enumerator As KeyValueStoreEnumerator)

Parameters

enumerator
KeyValueStoreEnumerator

The enumerator used to read data on the secondary.

Remarks

The KeyValueStoreEnumerator object can be used to read data on the secondary within the context of this method before any replication operations are applied. The KeyValueStoreEnumerator object is no longer valid after this method returns and cannot be used outside the context of this method. The application must take care to complete this callback in a timely manner since replication operations are being queued on the secondary replica and will not start getting applied until this method returns. The KeyValueStoreEnumerator object is backed by a single underlying local transaction and is not thread-safe.

Applies to