Table of Contents

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

AggregationResult[]

Properties

Action

Action that aggregation performed on the aggregate.

public AggregationAction Action { get; }

Property Value

AggregationAction

Aggregate

Resulting aggregate.

public object Aggregate { get; }

Property Value

object

Previous

Previous aggregate.

public object Previous { get; }

Property Value

object

Source

Facts that produced this aggregation result.

public IEnumerable<IFact> Source { get; }

Property Value

IEnumerable<IFact>

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 object

Aggregate.

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 object

Aggregate.

previous object

Previous 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 object

Aggregate.

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 object

Aggregate.

Returns

AggregationResult

Aggregation result.