Esempio n. 1
0
        public Task NotifyFaulted <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType, Exception exception)
            where T : class
        {
            var faultTask = GenerateFault(context, exception);

            _receiveContext.AddPendingTask(faultTask);

            return(_receiveContext.NotifyFaulted(context, duration, consumerType, exception));
        }
Esempio n. 2
0
        public Task NotifyFaulted <T>(ConsumeContext <T> context, TimeSpan duration, string consumerType, Exception exception)
            where T : class
        {
            Task faultTask = GenerateFault(context, exception);

            _pendingTasks.Add(faultTask);

            Task receiveTask = _receiveContext.NotifyFaulted(context, duration, consumerType, exception);

            _pendingTasks.Add(receiveTask);

            return(TaskUtil.Completed);
        }
 public Task NotifyFaulted(TimeSpan duration, string consumerType, Exception exception)
 {
     return(ReceiveContext.NotifyFaulted(this, duration, consumerType, exception));
 }