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

            return(this.replicator.WaitForCatchUpQuorumAsync(quorumMode, cancellationToken));
        }
Exemplo n.º 4
0
 Task IPrimaryReplicator.WaitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)
 {
     return(this.internalReplicator.WaitForCatchUpQuorumAsync(quorumMode, cancellationToken));
 }
Exemplo n.º 5
0
 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));
 }