Interface MessageRedeliveryContext
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Used to reschedule delivery of the current message
public interface MessageRedeliveryContext
Methods
ScheduleRedelivery(TimeSpan, Action<ConsumeContext, SendContext>?)
Schedule the message to be redelivered after the specified delay with given operation.
Task ScheduleRedelivery(TimeSpan delay, Action<ConsumeContext, SendContext>? callback = null)
Parameters
delay
TimeSpanThe minimum delay before the message will be redelivered to the queue
callback
Action<ConsumeContext, SendContext>Operation which perform during message redeliver to queue