private Task WaitForCatchUpQuorumAsyncHelper(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)
 {
     return(Utility.WrapNativeAsyncInvoke(
                (callback) => this.WaitForCatchUpQuorumBeginWrapper(quorumMode, callback),
                this.WaitForCatchUpQuorumEndWrapper,
                cancellationToken,
                "FabricReplicator.WaitForCatchupQuorum"));
 }
Beispiel #2
0
 public Task WaitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)
 {
     return(Task.FromResult(true));
 }
Beispiel #3
0
        private Task BeginWaitForCatchupQuorumAsync(NativeTypes.FABRIC_REPLICA_SET_QUORUM_MODE catchUpMode, CancellationToken cancellationToken)
        {
            ReplicaSetQuorumMode quorumMode = (ReplicaSetQuorumMode)catchUpMode;

            return(this.replicator.WaitForCatchUpQuorumAsync(quorumMode, cancellationToken));
        }
Beispiel #4
0
 Task IPrimaryReplicator.WaitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)
 {
     return(this.internalReplicator.WaitForCatchUpQuorumAsync(quorumMode, cancellationToken));
 }
 public Task WaitForCatchUpQuorumAsync(ReplicaSetQuorumMode mode, object asyncState)
 {
     throw new NotImplementedException();
 }
 private NativeCommon.IFabricAsyncOperationContext WaitForCatchUpQuorumBeginWrapper(ReplicaSetQuorumMode quorumMode, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     return(this.PrimaryReplicator.BeginWaitForCatchUpQuorum((NativeTypes.FABRIC_REPLICA_SET_QUORUM_MODE)quorumMode, callback));
 }