Interface IRecurringMessageScheduler
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
A message scheduler is able to schedule a message for delivery.
public interface IRecurringMessageScheduler
Methods
CancelScheduledRecurringSend(string, string)
Cancel a scheduled message by TokenId
Task CancelScheduledRecurringSend(string scheduleId, string scheduleGroup)
Parameters
scheduleIdstringThe scheduleId from the recurring schedule
scheduleGroupstringThe scheduleGroup from the recurring schedule
Returns
ScheduleRecurringSend(Uri, RecurringSchedule, object, IPipe<SendContext>, CancellationToken)
Sends an object as a message, using the message type specified. If the object cannot be cast to the specified message type, an exception will be thrown.
Task<ScheduledRecurringMessage> ScheduleRecurringSend(Uri destinationAddress, RecurringSchedule schedule, object message, IPipe<SendContext> pipe, CancellationToken cancellationToken = default)
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageobjectThe message object
pipeIPipe<SendContext>cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage>
The task which is completed once the Send is acknowledged by the broker
ScheduleRecurringSend(Uri, RecurringSchedule, object, CancellationToken)
Sends an object as a message, using the type of the message instance.
Task<ScheduledRecurringMessage> ScheduleRecurringSend(Uri destinationAddress, RecurringSchedule schedule, object message, CancellationToken cancellationToken = default)
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageobjectThe message object
cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage>
The task which is completed once the Send is acknowledged by the broker
ScheduleRecurringSend(Uri, RecurringSchedule, object, Type, IPipe<SendContext>, CancellationToken)
Sends an object as a message, using the message type specified. If the object cannot be cast to the specified message type, an exception will be thrown.
Task<ScheduledRecurringMessage> ScheduleRecurringSend(Uri destinationAddress, RecurringSchedule schedule, object message, Type messageType, IPipe<SendContext> pipe, CancellationToken cancellationToken = default)
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageobjectThe message object
messageTypeTypeThe type of the message (use message.GetType() if desired)
pipeIPipe<SendContext>cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage>
The task which is completed once the Send is acknowledged by the broker
ScheduleRecurringSend(Uri, RecurringSchedule, object, Type, CancellationToken)
Sends an object as a message, using the message type specified. If the object cannot be cast to the specified message type, an exception will be thrown.
Task<ScheduledRecurringMessage> ScheduleRecurringSend(Uri destinationAddress, RecurringSchedule schedule, object message, Type messageType, CancellationToken cancellationToken = default)
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageobjectThe message object
messageTypeTypeThe type of the message (use message.GetType() if desired)
cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage>
The task which is completed once the Send is acknowledged by the broker
ScheduleRecurringSend<T>(Uri, RecurringSchedule, object, IPipe<SendContext<T>>, CancellationToken)
Sends an interface message, initializing the properties of the interface using the anonymous object specified
Task<ScheduledRecurringMessage<T>> ScheduleRecurringSend<T>(Uri destinationAddress, RecurringSchedule schedule, object values, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken = default) where T : class
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
valuesobjectThe property values to initialize on the interface
pipeIPipe<SendContext<T>>cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage<T>>
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe interface type to send
ScheduleRecurringSend<T>(Uri, RecurringSchedule, object, IPipe<SendContext>, CancellationToken)
Sends an interface message, initializing the properties of the interface using the anonymous object specified
Task<ScheduledRecurringMessage<T>> ScheduleRecurringSend<T>(Uri destinationAddress, RecurringSchedule schedule, object values, IPipe<SendContext> pipe, CancellationToken cancellationToken = default) where T : class
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
valuesobjectThe property values to initialize on the interface
pipeIPipe<SendContext>cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage<T>>
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe interface type to send
ScheduleRecurringSend<T>(Uri, RecurringSchedule, object, CancellationToken)
Sends an interface message, initializing the properties of the interface using the anonymous object specified
Task<ScheduledRecurringMessage<T>> ScheduleRecurringSend<T>(Uri destinationAddress, RecurringSchedule schedule, object values, CancellationToken cancellationToken = default) where T : class
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
valuesobjectThe property values to initialize on the interface
cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage<T>>
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe interface type to send
ScheduleRecurringSend<T>(Uri, RecurringSchedule, T, IPipe<SendContext<T>>, CancellationToken)
Send a message
Task<ScheduledRecurringMessage<T>> ScheduleRecurringSend<T>(Uri destinationAddress, RecurringSchedule schedule, T message, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken = default) where T : class
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageTThe message
pipeIPipe<SendContext<T>>cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage<T>>
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
ScheduleRecurringSend<T>(Uri, RecurringSchedule, T, IPipe<SendContext>, CancellationToken)
Send a message
Task<ScheduledRecurringMessage<T>> ScheduleRecurringSend<T>(Uri destinationAddress, RecurringSchedule schedule, T message, IPipe<SendContext> pipe, CancellationToken cancellationToken = default) where T : class
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageTThe message
pipeIPipe<SendContext>cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage<T>>
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
ScheduleRecurringSend<T>(Uri, RecurringSchedule, T, CancellationToken)
Send a message
Task<ScheduledRecurringMessage<T>> ScheduleRecurringSend<T>(Uri destinationAddress, RecurringSchedule schedule, T message, CancellationToken cancellationToken = default) where T : class
Parameters
destinationAddressUriThe destination address where the schedule message should be sent
scheduleRecurringScheduleThe schedule for the message to be delivered
messageTThe message
cancellationTokenCancellationToken
Returns
- Task<ScheduledRecurringMessage<T>>
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type