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); }
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) { replicator = new NativeReplicator(); this.StateReplicator = new TestStateReplicator(); return(this.StateReplicator); }