示例#1
0
 public override Task AbandonAsync(FeedbackBatch feedback)
 {
     return(AmqpClientHelper.DisposeMessageAsync(
                _faultTolerantReceivingLink,
                feedback.LockToken,
                AmqpConstants.ReleasedOutcome,
                true));
 }
示例#2
0
 public override Task AbandonAsync(FileNotification fileNotification)
 {
     return(AmqpClientHelper.DisposeMessageAsync(
                _faultTolerantReceivingLink,
                fileNotification.LockToken,
                AmqpConstants.ReleasedOutcome,
                false));
 }
 public override Task CompleteAsync(FeedbackBatch feedback)
 {
     return(AmqpClientHelper.DisposeMessageAsync(
                this.faultTolerantReceivingLink,
                feedback.LockToken,
                AmqpConstants.AcceptedOutcome,
                true));
 }
示例#4
0
 public override Task CompleteAsync(FileNotification fileNotification)
 {
     return(AmqpClientHelper.DisposeMessageAsync(
                this.faultTolerantReceivingLink,
                fileNotification.LockToken,
                AmqpConstants.AcceptedOutcome,
                false));
 }
 public override Task AbandonAsync(FeedbackBatch feedback)
 {
     return(AmqpClientHelper.DisposeMessageAsync(
                _faultTolerantReceivingLink,
                feedback.LockToken,
                AmqpConstants.ReleasedOutcome,
                false)); // Feedback messages are sent by the service one at a time, so batching the acks is pointless
 }
 public override Task CompleteAsync(FeedbackBatch feedback, CancellationToken cancellationToken)
 {
     return(AmqpClientHelper.DisposeMessageAsync(
                _faultTolerantReceivingLink,
                feedback.LockToken,
                AmqpConstants.AcceptedOutcome,
                false, // Feedback messages are sent by the service one at a time, so batching the acks is pointless
                cancellationToken));
 }