Class BatchDispatcher<TItem>

Assembly: redb.Route.dll

Runs a collected batch through the route, one implementation for every broker: it builds the batch exchange
(InOnly, body a of , one message per broker message, even for a batch of
one), runs the route once, and settles the batch once after the route has returned, through the connector's
.

public sealed class BatchDispatcher<TItem>

Inheritance

Object→BatchDispatcher<TItem>

Methods

DispatchAsync(IReadOnlyList<TItem>, TransportSpan, CancellationToken)

Runs items through the route and settles them. A failure of the route is not thrown: it marks

public Task<BatchOutcome> DispatchAsync(IReadOnlyList<TItem> items, TransportSpan span, CancellationToken processingCt)

StartSpan(IRouteContext?, string, string, string, string?, IEnumerable<ActivityContext>, int)

The receive span of a batch: a root of its own (its messages come from different senders and traces, none of

public static TransportSpan StartSpan(IRouteContext? context, string name, string systemValue, string endpointUri, string? destination, IEnumerable<ActivityContext> senders, int count)

Constructors