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
- endpointISendEndpoint
- The endpoint to send the message 
- messageobject
- The message 
- callbackAction<SendContext>
- The callback for the send context 
- cancellationTokenCancellationToken
- To 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
- endpointISendEndpoint
- The endpoint to send the message 
- messageobject
- The message 
- callbackFunc<SendContext, Task>
- The callback for the send context 
- cancellationTokenCancellationToken
- To 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
- endpointISendEndpoint
- The endpoint to send the message 
- messageobject
- The message 
- messageTypeType
- The message type to send the object as 
- callbackAction<SendContext>
- The callback for the send context 
- cancellationTokenCancellationToken
- To 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
- endpointISendEndpoint
- The endpoint to send the message 
- messageobject
- The message 
- messageTypeType
- The message type to send the object as 
- callbackFunc<SendContext, Task>
- The callback for the send context 
- cancellationTokenCancellationToken
- To 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 : classParameters
- endpointISendEndpoint
- The endpoint to send the message 
- valuesobject
- The values that map to the object 
- callbackAction<SendContext<T>>
- The callback for the send context 
- cancellationTokenCancellationToken
- To cancel the send from happening 
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The 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 : classParameters
- endpointISendEndpoint
- The endpoint to send the message 
- valuesobject
- The values that map to the object 
- callbackFunc<SendContext<T>, Task>
- The callback for the send context 
- cancellationTokenCancellationToken
- To cancel the send from happening 
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The 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 : classParameters
- endpointISendEndpoint
- The endpoint to send the message 
- messageT
- The message 
- callbackAction<SendContext<T>>
- The callback for the send context 
- cancellationTokenCancellationToken
- To cancel the send from happening 
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The 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 : classParameters
- endpointISendEndpoint
- The endpoint to send the message 
- messageT
- The message 
- callbackFunc<SendContext<T>, Task>
- The callback for the send context 
- cancellationTokenCancellationToken
- To cancel the send from happening 
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The 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 : classParameters
- 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 : classParameters
- callbackFunc<SendContext<T>, Task>
Returns
- IPipe<SendContext<T>>
Type Parameters
- T