Interface Batch<T>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
A batch of messages which are delivered to a consumer all at once
public interface Batch<out T> : IEnumerable<ConsumeContext<T>>, IEnumerable where T : class
Type Parameters
T
- Inherited Members
- Extension Methods
Properties
FirstMessageReceived
When the first message in this batch was received
DateTime FirstMessageReceived { get; }
Property Value
this[int]
Returns the message at the specified index
ConsumeContext<out T> this[int index] { get; }
Parameters
index
int
Property Value
LastMessageReceived
When the last message in this batch was received
DateTime LastMessageReceived { get; }
Property Value
Length
The number of messages in this batch
int Length { get; }
Property Value
Mode
BatchCompletionMode Mode { get; }