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);
            }
Example #2
0
 public virtual NativeRuntime.IFabricStateReplicator CreateReplicator(NativeRuntime.IFabricStateProvider stateProvider, IntPtr fabricReplicatorSettings, out NativeRuntime.IFabricReplicator replicator)
 {
     throw new NotImplementedException();
 }
Example #3
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);
 }