Class PollEnrichProcessor
Poll Enricher: sends a request to an endpoint with a timeout, merging the result
into the current exchange. If the endpoint does not respond within the timeout,
the merge strategy receives a null exchange, allowing graceful handling.
The producer is cached for the lifetime of this processor.
public sealed class PollEnrichProcessor : IProcessor
Inheritance
Implements
Methods
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
PollEnrichProcessor(IRouteContext, DynamicEndpointResolver, Func<IExchange, IExchange?, IExchange>, TimeSpan?)
Creates a poll enrich processor with a dynamic endpoint resolver.
PollEnrichProcessor(IRouteContext, string, Func<IExchange, IExchange?, IExchange>, TimeSpan?)
Creates a poll enrich processor.