示例#1
0
        internal FabricReplicatorEx(NativeRuntime.IFabricReplicator nativeReplicator, NativeRuntime.IFabricAtomicGroupStateReplicatorEx nativeStateReplicator, NativeRuntime.IOperationDataFactory operationDataFactory)
        {
            this.internalReplicator = new InternalFabricReplicator(nativeReplicator);

            this.nativeStateReplicator = nativeStateReplicator;

            this.stateReplicator = FabricReplicatorEx.CreateStateReplicator(this.nativeStateReplicator, operationDataFactory);
        }
示例#2
0
 internal FabricReplicator(
     NativeRuntime.IFabricReplicator nativeReplicator,
     NativeRuntime.IFabricStateReplicator nativeStateReplicator,
     NativeRuntime.IOperationDataFactory operationDataFactory)
     : this(nativeReplicator)
 {
     this.stateReplicator = FabricReplicator.CreateStateReplicator(nativeStateReplicator, operationDataFactory);
 }
示例#3
0
 public virtual NativeRuntime.IFabricStateReplicator CreateReplicator(NativeRuntime.IFabricStateProvider stateProvider, IntPtr fabricReplicatorSettings, out NativeRuntime.IFabricReplicator replicator)
 {
     throw new NotImplementedException();
 }
            public override NativeRuntime.IFabricStateReplicator CreateReplicator(NativeRuntime.IFabricStateProvider stateProvider, IntPtr fabricReplicatorSettings, out NativeRuntime.IFabricReplicator replicator)
            {
                this.StateProvider = stateProvider;

                unsafe
                {
                    if (fabricReplicatorSettings == IntPtr.Zero)
                    {
                        this.ReplicatorSettings = null;
                    }
                    else
                    {
                        this.ReplicatorSettings = *(NativeTypes.FABRIC_REPLICATOR_SETTINGS *)fabricReplicatorSettings.ToPointer();
                    }
                }

                replicator = this.ReplicatorOut;
                return(this.StateReplicatorOut);
            }
 internal InternalFabricReplicator(NativeRuntime.IFabricReplicator nativeReplicator)
 {
     this.nativeReplicator = nativeReplicator;
 }
示例#6
0
 internal FabricReplicator(
     NativeRuntime.IFabricReplicator nativeReplicator)
 {
     this.internalReplicator = new InternalFabricReplicator(nativeReplicator);
 }
示例#7
0
 public override NativeRuntime.IFabricStateReplicator CreateReplicator(NativeRuntime.IFabricStateProvider stateProvider, IntPtr fabricReplicatorSettings, out NativeRuntime.IFabricReplicator replicator)
 {
     replicator           = new NativeReplicator();
     this.StateReplicator = new TestStateReplicator();
     return(this.StateReplicator);
 }