IStateReplicator.GetReplicationStream Method ()
Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2
Gets replication stream.
Namespace: System.Fabric
Assembly: System.Fabric (in System.Fabric.dll)
Syntax
IOperationStream GetReplicationStream()
Return Value
Type: System.Fabric.IOperationStream
Returns the replication IOperationStream.
Exceptions
Exception | Condition |
---|---|
FabricTransientException | FabricTransientException is a retriable exception. It is caused by one of the following; ReconfigurationPending is returned when the replicator has a pending reconfiguration. |
FabricObjectClosedException | FabricObjectClosedException is caused by one of the following; ObjectClosed is returned when the replicator has been closed. |
Remarks
The ReplicationStream implements IOperationStream. The ReplicationStream contains OperationData objects that implement IOperation. The objects are provided by the Primary replica via ReplicateAsync. Generally a Secondary replica should send GetOperationAsync. Although Service Fabric does not require services to do so, generally services should transfer all OperationData objects out of the copy stream first, and then transfer operations out of the replication stream. The transfer from both copies in parallel is supported but increases the complexity of applying state updates correctly and is recommended only for advanced services. The stream is empty when the returned IOperation method is null.
See Also
IStateReplicator Interface
System.Fabric Namespace
Return to top