コード例 #1
0
 private AsyncEnumerateOperationDataBroker(IOperationDataStream enumerator, OperationDataFactoryWrapper operationDataFactory)
 {
     Requires.Argument("enumerator", enumerator).NotNull();
     Requires.Argument("operationDataFactory", operationDataFactory).NotNull();
     this.enumerator           = enumerator;
     this.operationDataFactory = operationDataFactory;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public static AsyncEnumerateOperationDataBroker ToNative(IOperationDataStream enumerator, OperationDataFactoryWrapper operationDataFactory)
 {
     if (enumerator == null)
     {
         return(null);
     }
     else
     {
         var native = new AsyncEnumerateOperationDataBroker(enumerator, operationDataFactory);
         return(native);
     }
 }