Class ConvertBodyProcessor

Assembly: redb.Route.dll

Processor that converts the exchange body to the specified target type.
Uses ContentType to determine encoding for byte[]/string conversions.
Supports Stream ↔ byte[] ↔ string conversions.

public sealed class ConvertBodyProcessor : IProcessor

Inheritance

Object→ConvertBodyProcessor

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors

ConvertBodyProcessor(Type, IDataFormatRegistry?)

Creates a body converter processor.