Пример #1
0
        Task ConsumeContext.NotifyConsumed <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType)
        {
            Task receiveTask = _receiveContext.NotifyConsumed(context, duration, consumerType);

            _pendingTasks.Add(receiveTask);

            return(TaskUtil.Completed);
        }
        public Task NotifyConsumed <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType) where T : class
        {
            Task receiveTask = _receiveContext.NotifyConsumed(context, duration, consumerType);

            _receiveContext.AddPendingTask(receiveTask);

            return(TaskUtil.Completed);
        }
Пример #3
0
 public Task NotifyConsumed <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType) where T : class
 {
     return(_receiveContext.NotifyConsumed(context, duration, consumerType));
 }
 public Task NotifyConsumed(TimeSpan duration, string consumerType)
 {
     return(ReceiveContext.NotifyConsumed(this, duration, consumerType));
 }