Class BatchProduceExtensions
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public static class BatchProduceExtensions
- Inheritance
-
BatchProduceExtensions
- Inherited Members
Methods
PublishBatch(IPublishEndpoint, IEnumerable<object>, IPipe<PublishContext>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, IPipe<PublishContext> pipe, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>pipeIPipe<PublishContext>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, Action<PublishContext>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, Action<PublishContext> callback, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>callbackAction<PublishContext>The callback for the publish context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, Func<PublishContext, Task>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, Func<PublishContext, Task> callback, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>callbackFunc<PublishContext, Task>The callback for the publish context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, Type, IPipe<PublishContext>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, Type messageType, IPipe<PublishContext> pipe, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypepipeIPipe<PublishContext>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, Type, Action<PublishContext>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, Type messageType, Action<PublishContext> callback, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypecallbackAction<PublishContext>The callback for the publish context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, Type, Func<PublishContext, Task>, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, Type messageType, Func<PublishContext, Task> callback, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypecallbackFunc<PublishContext, Task>The callback for the publish context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch(IPublishEndpoint, IEnumerable<object>, Type, CancellationToken)
Publish a message batch
public static Task PublishBatch(this IPublishEndpoint endpoint, IEnumerable<object> messages, Type messageType, CancellationToken cancellationToken = default)
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypecancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
PublishBatch<T>(IPublishEndpoint, IEnumerable<T>, IPipe<PublishContext<T>>, CancellationToken)
Publish a message batch
public static Task PublishBatch<T>(this IPublishEndpoint endpoint, IEnumerable<T> messages, IPipe<PublishContext<T>> pipe, CancellationToken cancellationToken = default) where T : class
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<T>pipeIPipe<PublishContext<T>>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
Type Parameters
TThe message type
PublishBatch<T>(IPublishEndpoint, IEnumerable<T>, Action<PublishContext<T>>, CancellationToken)
Publish a message batch
public static Task PublishBatch<T>(this IPublishEndpoint endpoint, IEnumerable<T> messages, Action<PublishContext<T>> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<T>callbackAction<PublishContext<T>>The callback for the publish context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
Type Parameters
TThe message type
PublishBatch<T>(IPublishEndpoint, IEnumerable<T>, Func<PublishContext<T>, Task>, CancellationToken)
Publish a message batch
public static Task PublishBatch<T>(this IPublishEndpoint endpoint, IEnumerable<T> messages, Func<PublishContext<T>, Task> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<T>callbackFunc<PublishContext<T>, Task>The callback for the publish context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Publish is acknowledged by the broker
Type Parameters
TThe message type
PublishBatch<T>(IPublishEndpoint, IEnumerable<T>, CancellationToken)
Send a message
public static Task PublishBatch<T>(this IPublishEndpoint endpoint, IEnumerable<T> messages, CancellationToken cancellationToken = default) where T : class
Parameters
endpointIPublishEndpointThe destination endpoint
messagesIEnumerable<T>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
SendBatch(ISendEndpoint, IEnumerable<object>, IPipe<SendContext>, CancellationToken)
Send a message batch
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, IPipe<SendContext> pipe, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>pipeIPipe<SendContext>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, Action<SendContext>, CancellationToken)
Send a message batch
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, Action<SendContext> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>callbackAction<SendContext>The callback for the send context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, Func<SendContext, Task>, CancellationToken)
Send a message batch
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, Func<SendContext, Task> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>callbackFunc<SendContext, Task>The callback for the send context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, CancellationToken)
Send a message batch
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, Type, IPipe<SendContext>, CancellationToken)
Send a message
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, Type messageType, IPipe<SendContext> pipe, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypepipeIPipe<SendContext>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, Type, Action<SendContext>, CancellationToken)
Send a message
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, Type messageType, Action<SendContext> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypecallbackAction<SendContext>The callback for the send context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, Type, Func<SendContext, Task>, CancellationToken)
Send a message
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, Type messageType, Func<SendContext, Task> callback, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypecallbackFunc<SendContext, Task>The callback for the send context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch(ISendEndpoint, IEnumerable<object>, Type, CancellationToken)
Send a message
public static Task SendBatch(this ISendEndpoint endpoint, IEnumerable<object> messages, Type messageType, CancellationToken cancellationToken = default)
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<object>messageTypeTypecancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
SendBatch<T>(ISendEndpoint, IEnumerable<T>, IPipe<SendContext<T>>, CancellationToken)
Send a message
public static Task SendBatch<T>(this ISendEndpoint endpoint, IEnumerable<T> messages, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<T>pipeIPipe<SendContext<T>>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
SendBatch<T>(ISendEndpoint, IEnumerable<T>, Action<SendContext<T>>, CancellationToken)
Send a message batch
public static Task SendBatch<T>(this ISendEndpoint endpoint, IEnumerable<T> messages, Action<SendContext<T>> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<T>callbackAction<SendContext<T>>The callback for the send context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
SendBatch<T>(ISendEndpoint, IEnumerable<T>, Func<SendContext<T>, Task>, CancellationToken)
Send a message batch
public static Task SendBatch<T>(this ISendEndpoint endpoint, IEnumerable<T> messages, Func<SendContext<T>, Task> callback, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<T>callbackFunc<SendContext<T>, Task>The callback for the send context
cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type
SendBatch<T>(ISendEndpoint, IEnumerable<T>, CancellationToken)
Send a message batch
public static Task SendBatch<T>(this ISendEndpoint endpoint, IEnumerable<T> messages, CancellationToken cancellationToken = default) where T : class
Parameters
endpointISendEndpointThe destination endpoint
messagesIEnumerable<T>cancellationTokenCancellationToken
Returns
- Task
The task which is completed once the Send is acknowledged by the broker
Type Parameters
TThe message type