Class AggregationResult
- Namespace
- NRules.Aggregators
- Assembly
- NRules.dll
Result of the aggregation.
public class AggregationResult
- Inheritance
-
AggregationResult
- Inherited Members
Fields
Empty
public static readonly AggregationResult[] Empty
Field Value
Properties
Action
Action that aggregation performed on the aggregate.
public AggregationAction Action { get; }
Property Value
Aggregate
Resulting aggregate.
public object Aggregate { get; }
Property Value
Previous
Previous aggregate.
public object Previous { get; }
Property Value
Source
Facts that produced this aggregation result.
public IEnumerable<IFact> Source { get; }
Property Value
Methods
Added(object, IEnumerable<IFact>)
Constructs an aggregation result that indicates a new aggregate.
public static AggregationResult Added(object result, IEnumerable<IFact> source)
Parameters
result
objectAggregate.
source
IEnumerable<IFact>Aggregate source facts.
Returns
- AggregationResult
Aggregation result.
Modified(object, object, IEnumerable<IFact>)
Constructs an aggregation result that indicates a modification at the aggregate level.
public static AggregationResult Modified(object result, object previous, IEnumerable<IFact> source)
Parameters
result
objectAggregate.
previous
objectPrevious aggregate.
source
IEnumerable<IFact>Aggregate source facts.
Returns
- AggregationResult
Aggregation result.
None(object, IEnumerable<IFact>)
Constructs an aggregation result that indicates no changes at the aggregate level.
public static AggregationResult None(object result, IEnumerable<IFact> source)
Parameters
result
objectAggregate.
source
IEnumerable<IFact>Aggregate source facts.
Returns
- AggregationResult
Aggregation result.
Removed(object)
Constructs an aggregation result that indicates an aggregate was removed.
public static AggregationResult Removed(object result)
Parameters
result
objectAggregate.
Returns
- AggregationResult
Aggregation result.