Class ListBody

Namespace: redb.Route.Core
Assembly: redb.Route.dll

A body that is a list, at a producer. A list of (a batch consumer's body, for one) is sent
element by element, each element its own outgoing message with its own body and headers, as camel-kafka sends an
Iterable body; a connector that has no wire form for a plain list (a list of other values whose text would be
its type name) refuses it instead of sending that name. One implementation for every producer: the connector
supplies only the send.

public static class ListBody

Inheritance

Object→ListBody

Methods

ElementExchange(IExchange, object?)

The exchange one element is sent from, a linked child of parent (its properties, its scope):

public static IExchange ElementExchange(IExchange parent, object? element)

IsPlainList(object?)

Whether body is a plain list: a collection that is not a list of , not

public static bool IsPlainList(object? body)

Messages(object?)

The elements when body is a collection of ; otherwise null.

public static IReadOnlyList<IMessage>? Messages(object? body)

PlainListRefusal(string, object)

The refusal of a plain list at a producer that has no wire form for it.

public static InvalidOperationException PlainListRefusal(string endpoint, object body)

RequestReplyRefusal(string, int)

The refusal of a list at a request-reply producer: one request cannot wait for many replies.

public static InvalidOperationException RequestReplyRefusal(string endpoint, int count)