private NativeCommon.IFabricAsyncOperationContext UpdateEpochBeginWrapper(Epoch epoch, NativeCommon.IFabricAsyncOperationCallback callback)
        {
            NativeTypes.FABRIC_EPOCH nativeEpoch;

            epoch.ToNative(out nativeEpoch);

            unsafe
            {
                return(this.NativeReplicator.BeginUpdateEpoch((IntPtr)(&nativeEpoch), callback));
            }
        }
        private NativeCommon.IFabricAsyncOperationContext ChangeRoleBeginWrapper(Epoch epoch, ReplicaRole role, NativeCommon.IFabricAsyncOperationCallback callback)
        {
            NativeTypes.FABRIC_EPOCH nativeEpoch;

            epoch.ToNative(out nativeEpoch);

            unsafe
            {
                return(this.nativeReplicator.BeginChangeRole((IntPtr)(&nativeEpoch), (NativeTypes.FABRIC_REPLICA_ROLE)role, callback));
            }
        }