Class ConvertBodyProcessor
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
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.