Base interface for aggregator factories.
Aggregator factory constructs new instances of IAggregator
of a given type, so that they
can accumulate aggregation results.
type must either be registered in AggregatorRegistry
or provided in the canonical rule model via CustomFactoryType
. If both are
provided, the aggregator factory at the AggregateElement
level takes precedence.
NRules (in NRules.dll) Version: 0.8.4
public interface IAggregatorFactory
The IAggregatorFactory type exposes the following members.
Called by the rules engine to compile the aggregator factory before it is used for the first time.
Creates a new aggregator instance.
This method is called by the engine for each new combination of preceding partial matches,
so that a new instance of the aggregator is created to accummulate the results.