private AsyncEnumerateOperationDataBroker(IOperationDataStream enumerator, OperationDataFactoryWrapper operationDataFactory) { Requires.Argument("enumerator", enumerator).NotNull(); Requires.Argument("operationDataFactory", operationDataFactory).NotNull(); this.enumerator = enumerator; this.operationDataFactory = operationDataFactory; }
public AtomicGroupStateReplicatorEx(NativeRuntime.IFabricAtomicGroupStateReplicatorEx nativeStateReplicator, NativeRuntime.IOperationDataFactory nativeOperationDataFactory) { Requires.Argument("nativeStateReplicator", nativeStateReplicator).NotNull(); Requires.Argument("nativeOperationDataFactory", nativeOperationDataFactory).NotNull(); this.nativeStateReplicator = nativeStateReplicator; this.operationDataFactory = new OperationDataFactoryWrapper(nativeOperationDataFactory); }
public StateReplicator(NativeRuntime.IFabricStateReplicator nativeStateReplicator, NativeRuntime.IOperationDataFactory nativeOperationDataFactory) { Requires.Argument("nativeStateReplicator", nativeStateReplicator).NotNull(); Requires.Argument("nativeOperationDataFactory", nativeOperationDataFactory).NotNull(); // This is either the V1 replicator or the service groups atomic group replicator this.nativeStateReplicator = nativeStateReplicator as NativeRuntime.IFabricStateReplicator2; this.replicatorUsingOperationEx1 = nativeStateReplicator as NativeRuntime.IFabricInternalManagedReplicator; this.operationDataFactory = new OperationDataFactoryWrapper(nativeOperationDataFactory); }
public static AsyncEnumerateOperationDataBroker ToNative(IOperationDataStream enumerator, OperationDataFactoryWrapper operationDataFactory) { if (enumerator == null) { return(null); } else { var native = new AsyncEnumerateOperationDataBroker(enumerator, operationDataFactory); return(native); } }