Method Aggregate(IRouteDefinition, string, Func<IExchange, IExchange, IExchange>, string?, int?, TimeSpan?)
Aggregate from a correlation expression, with completion by condition, size, an inactivity
timeout (Apache Camel completionTimeout: the clock restarts on every arrival for the
group), or any combination — whichever fires first completes the group. At least one
completion criterion is required: an aggregate that can never complete is a leak, not a
default.
public static AggregateDefinition Aggregate(this IRouteDefinition self, string correlationExpression, Func<IExchange, IExchange, IExchange> aggregationStrategy, string? completionCondition = null, int? completionSize = null, TimeSpan? completionTimeout = null)