Udostępnij za pośrednictwem


VolatileActorStateProvider.IStateProvider.GetCopyContext Method

Definition

Obtains context on a Secondary replica after it is created and opened to send context to the Primary replica.

System.Fabric.IOperationDataStream IStateProvider.GetCopyContext ();
abstract member System.Fabric.IStateProvider.GetCopyContext : unit -> System.Fabric.IOperationDataStream
override this.System.Fabric.IStateProvider.GetCopyContext : unit -> System.Fabric.IOperationDataStream
Function GetCopyContext () As IOperationDataStream Implements IStateProvider.GetCopyContext

Returns

Returns IOperationDataStream.

Implements

Remarks

The Primary replica analyzes the context and sends back state via GetCopyState(Int64, IOperationDataStream).

GetCopyContext() is called on newly created, idle Secondary replicas and provides a mechanism to asynchronously establish a bidirectional conversation with the Primary replica. The Secondary replica sends OperationData objects with which the Primary replica can determine the progress of collecting context on the Secondary replica. The Primary replica responds by sending the required state back. See GetCopyState(Int64, IOperationDataStream) at the Primary replica for the other half of the exchange.

For in-memory services, the GetCopyContext() method is not called, as the state of the Secondary replicas is known (they are empty and will require all of the state).

Applies to