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))); }
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))); }