コード例 #1
0
 /// <summary>
 /// Completes a subscribed message
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public Task Complete(SubscribedContext context)
 {
     context.MessageData.Completed = _clock.UtcNow;
     _counters.CompleteMessage();
     return(_dataAccess.CompleteMessage(context.MessageData));
 }
コード例 #2
0
 /// <inheritdoc/>
 public Task Complete(QueueContext messageContext)
 {
     messageContext.MessageData.Completed = _clock.UtcNow;
     _counters.CompleteMessage();
     return(_dataAccess.CompleteMessage(messageContext.MessageData, messageContext.SourceQueue));
 }