Class ToProcessor
Sends the exchange to a target endpoint via its producer.
Resolves the endpoint from IRouteContext by URI, creates a producer, and delegates Process.
The producer is started on first use and can be stopped via .
public class ToProcessor : IProcessor
Inheritance
Implements
Properties
Methods
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
StopProducerAsync(CancellationToken)
Stops the producer if one was created and started.
public Task StopProducerAsync(CancellationToken ct = default)
Constructors
ToProcessor(string, IRouteContext)
Creates a ToProcessor that sends exchanges to the given endpoint URI.