Class SendExecuteExtensions
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public static class SendExecuteExtensions
- Inheritance
-
SendExecuteExtensions
- Inherited Members
Methods
Send(ISendEndpoint, object, Action<SendContext>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send(this ISendEndpoint endpoint, object message, Action<SendContext> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe endpoint to send the message
messageobjectThe message
callbackAction<SendContext>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send(ISendEndpoint, object, Func<SendContext, Task>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send(this ISendEndpoint endpoint, object message, Func<SendContext, Task> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe endpoint to send the message
messageobjectThe message
callbackFunc<SendContext, Task>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send(ISendEndpoint, object, Type, Action<SendContext>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send(this ISendEndpoint endpoint, object message, Type messageType, Action<SendContext> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe endpoint to send the message
messageobjectThe message
messageTypeTypeThe message type to send the object as
callbackAction<SendContext>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send(ISendEndpoint, object, Type, Func<SendContext, Task>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send(this ISendEndpoint endpoint, object message, Type messageType, Func<SendContext, Task> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe endpoint to send the message
messageobjectThe message
messageTypeTypeThe message type to send the object as
callbackFunc<SendContext, Task>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send<T>(ISendEndpoint, object, Action<SendContext<T>>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send<T>(this ISendEndpoint endpoint, object values, Action<SendContext<T>> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe endpoint to send the message
valuesobjectThe values that map to the object
callbackAction<SendContext<T>>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
Send<T>(ISendEndpoint, object, Func<SendContext<T>, Task>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send<T>(this ISendEndpoint endpoint, object values, Func<SendContext<T>, Task> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe endpoint to send the message
valuesobjectThe values that map to the object
callbackFunc<SendContext<T>, Task>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
Send<T>(ISendEndpoint, T, Action<SendContext<T>>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send<T>(this ISendEndpoint endpoint, T message, Action<SendContext<T>> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe endpoint to send the message
messageTThe message
callbackAction<SendContext<T>>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
Send<T>(ISendEndpoint, T, Func<SendContext<T>, Task>, CancellationToken)
Send a message, using a callback to modify the send context instead of building a pipe from scratch
public static Task Send<T>(this ISendEndpoint endpoint, T message, Func<SendContext<T>, Task> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe endpoint to send the message
messageTThe message
callbackFunc<SendContext<T>, Task>The callback for the send context
cancellationTokenCancellationTokenTo cancel the send from happening
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
ToPipe(Action<SendContext>)
public static IPipe<SendContext> ToPipe(this Action<SendContext> callback)
Parameters
callbackAction<SendContext>
Returns
ToPipe(Func<SendContext, Task>)
public static IPipe<SendContext> ToPipe(this Func<SendContext, Task> callback)
Parameters
callbackFunc<SendContext, Task>
Returns
ToPipe<T>(Action<SendContext<T>>)
public static IPipe<SendContext<T>> ToPipe<T>(this Action<SendContext<T>> callback) where T : class
Parameters
callbackAction<SendContext<T>>
Returns
- IPipe<SendContext<T>>
Type Parameters
T
ToPipe<T>(Func<SendContext<T>, Task>)
public static IPipe<SendContext<T>> ToPipe<T>(this Func<SendContext<T>, Task> callback) where T : class
Parameters
callbackFunc<SendContext<T>, Task>
Returns
- IPipe<SendContext<T>>
Type Parameters
T