Class WireTapProcessor
Sends a fire-and-forget clone of the exchange to a tap processor.
The main exchange continues through the pipeline unchanged.
Supports an optional onPrepare callback to modify the clone before tapping
and an optional body replacement for the tapped exchange.
Errors in the tap are logged (if logger available) but never propagated
to the main pipeline — this is by-design for fire-and-forget semantics.
public class WireTapProcessor : IProcessor, IAsyncDisposable
Inheritance
Implements
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or
public ValueTask DisposeAsync()
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
WireTapProcessor(IProcessor, Action<IExchange>?, Func<IExchange, object?>?, ILogger?, ThreadPoolProfile?, string?, string?)
Creates a wire-tap that sends clones to the specified processor.