Table of Contents

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

DateTime

this[int]

Returns the message at the specified index

ConsumeContext<out T> this[int index] { get; }

Parameters

index int

Property Value

ConsumeContext<T>

LastMessageReceived

When the last message in this batch was received

DateTime LastMessageReceived { get; }

Property Value

DateTime

Length

The number of messages in this batch

int Length { get; }

Property Value

int

Mode

BatchCompletionMode Mode { get; }

Property Value

BatchCompletionMode