다음을 통해 공유


IStateReplicator.GetCopyStream Method

Definition

Gets copy stream.

public System.Fabric.IOperationStream GetCopyStream ();
abstract member GetCopyStream : unit -> System.Fabric.IOperationStream
Public Function GetCopyStream () As IOperationStream

Returns

Returns the copy IOperationStream.

Exceptions

FabricTransientException is a retriable exception. It is caused by one of the following;

ReconfigurationPending is returned when the replicator has a pending reconfiguration.

FabricObjectClosedException is caused by one of the following;

ObjectClosed is returned when the replicator has been closed.

Remarks

The returned CopyStream is an IOperationStream that contains OperationData objects that implement IOperation. The OperationData objects are obtained from the CopyState IOperationDataStream that the Primary replica returns from GetCopyState(Int64, IOperationDataStream). When a replica is created and has to catch up, it should obtain the CopyStream and begin to send, apply, and acknowledge the Copy objects that implement IOperation. In parallel, the replica responds to the corresponding GetCopyContext() and GetNextAsync(CancellationToken) calls. The stream is empty when the returned IOperation method is null.

Applies to