Class SendConsumeContextExecuteExtensions
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public static class SendConsumeContextExecuteExtensions
- Inheritance
-
SendConsumeContextExecuteExtensions
- Inherited Members
Methods
Send(ConsumeContext, Uri, object, Action<SendContext>)
Send a message
public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Action<SendContext> callback)
Parameters
context
ConsumeContextdestinationAddress
Urimessage
objectThe message
callback
Action<SendContext>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send(ConsumeContext, Uri, object, Func<SendContext, Task>)
Send a message
public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Func<SendContext, Task> callback)
Parameters
context
ConsumeContextdestinationAddress
Urimessage
objectThe message
callback
Func<SendContext, Task>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send(ConsumeContext, Uri, object, Type, Action<SendContext>)
Send a message
public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Type messageType, Action<SendContext> callback)
Parameters
context
ConsumeContextdestinationAddress
Urimessage
objectThe message
messageType
Typecallback
Action<SendContext>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send(ConsumeContext, Uri, object, Type, Func<SendContext, Task>)
Send a message
public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Type messageType, Func<SendContext, Task> callback)
Parameters
context
ConsumeContextdestinationAddress
Urimessage
objectThe message
messageType
Typecallback
Func<SendContext, Task>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Send<T>(ConsumeContext, Uri, object, Action<SendContext<T>>)
Send a message
public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, object values, Action<SendContext<T>> callback) where T : class
Parameters
context
ConsumeContextdestinationAddress
Urivalues
objectcallback
Action<SendContext<T>>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
T
The message type
Send<T>(ConsumeContext, Uri, object, Func<SendContext<T>, Task>)
Send a message
public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, object values, Func<SendContext<T>, Task> callback) where T : class
Parameters
context
ConsumeContextdestinationAddress
Urivalues
objectcallback
Func<SendContext<T>, Task>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
T
The message type
Send<T>(ConsumeContext, Uri, T, Action<SendContext<T>>)
Send a message
public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, T message, Action<SendContext<T>> callback) where T : class
Parameters
context
ConsumeContextdestinationAddress
Urimessage
TThe message
callback
Action<SendContext<T>>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
T
The message type
Send<T>(ConsumeContext, Uri, T, Func<SendContext<T>, Task>)
Send a message
public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, T message, Func<SendContext<T>, Task> callback) where T : class
Parameters
context
ConsumeContextdestinationAddress
Urimessage
TThe message
callback
Func<SendContext<T>, Task>The callback for the send context
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
T
The message type