Interface IScatterGatherDefinition
Fluent builder for configuring a Scatter-Gather step.
Allows setting recipients (static or dynamic), aggregation strategy,
timeout, parallelism, and error handling options.
public interface IScatterGatherDefinition
Methods
AggregationStrategy(Func<IExchange, IExchange, IExchange>)
Sets the mandatory pair-wise aggregation strategy: (accumulated, current) → merged.
IScatterGatherDefinition AggregationStrategy(Func<IExchange, IExchange, IExchange> strategy)
MaxDegreeOfParallelism(int)
Sets the maximum degree of parallelism (0 = processor count).
IScatterGatherDefinition MaxDegreeOfParallelism(int maxDop)
ParallelProcessing(bool)
Enables or disables parallel processing of recipients (default: true).
IScatterGatherDefinition ParallelProcessing(bool parallel = true)
Recipients(Func<IExchange, IEnumerable<string>>)
Sets a dynamic recipient factory that resolves URIs from the exchange at runtime.
IScatterGatherDefinition Recipients(Func<IExchange, IEnumerable<string>> factory)
Recipients(params string[])
Sets the static list of recipient endpoint URIs.
IScatterGatherDefinition Recipients(params string[] uris)
StopOnException(bool)
Enables or disables stop-on-exception behavior (default: false).
IScatterGatherDefinition StopOnException(bool stop = true)
Timeout(TimeSpan)
Sets the timeout for the entire scatter-gather operation.
IScatterGatherDefinition Timeout(TimeSpan timeout)