예제 #1
0
        Task MessageRedeliveryContext.ScheduleRedelivery(TimeSpan delay, Action <ConsumeContext, SendContext> callback)
        {
            var schedulerContext = _context.GetPayload <MessageSchedulerContext>();

            Action <ConsumeContext, SendContext> combinedAction = AddMessageHeaderAction + callback;

            return(schedulerContext.ScheduleSend(delay, _context.Message, _context.CreateCopyContextPipe(combinedAction)));
        }
예제 #2
0
 Task MessageRedeliveryContext.ScheduleRedelivery(TimeSpan delay)
 {
     return(_scheduler.ScheduleSend(_context.Message, delay, _context.CreateCopyContextPipe(GetScheduledMessageHeaders)));
 }
        Task MessageRedeliveryContext.ScheduleRedelivery(TimeSpan delay, Action <ConsumeContext, SendContext> callback)
        {
            Action <ConsumeContext, SendContext> combinedAction = AddMessageHeaderAction + callback;

            return(_scheduler.ScheduleSend(delay, _context.Message, _context.CreateCopyContextPipe(combinedAction)));
        }