Example #1
0
 public NativeCommon.IFabricAsyncOperationContext BeginWaitForCatchUpQuorum(NativeTypes.FABRIC_REPLICA_SET_QUORUM_MODE catchUpMode, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     return(Utility.WrapNativeAsyncMethodImplementation((cancellationToken) => this.BeginWaitForCatchupQuorumAsync(catchUpMode, cancellationToken), callback, "ReplicaBroker.WaitForCatchUpQuorum"));
 }
Example #2
0
        private Task BeginWaitForCatchupQuorumAsync(NativeTypes.FABRIC_REPLICA_SET_QUORUM_MODE catchUpMode, CancellationToken cancellationToken)
        {
            ReplicaSetQuorumMode quorumMode = (ReplicaSetQuorumMode)catchUpMode;

            return(this.replicator.WaitForCatchUpQuorumAsync(quorumMode, cancellationToken));
        }