Class AggregationResult<TKey, TResult>
- Namespace
- PatternKit.Messaging.Routing
- Assembly
- PatternKit.Core.dll
Result returned after adding a message to an aggregator.
public sealed class AggregationResult<TKey, TResult> where TKey : notnull
Type Parameters
TKeyTResult
- Inheritance
-
AggregationResult<TKey, TResult>
- Inherited Members
Properties
Accepted
true when the added message was accepted into the group.
public bool Accepted { get; }
Property Value
Completed
true when this add completed the group.
public bool Completed { get; }
Property Value
Count
Number of messages currently in the group snapshot.
public int Count { get; }
Property Value
Key
The aggregation key.
public TKey Key { get; }
Property Value
- TKey
Result
The completed result, or default while pending.
public TResult? Result { get; }
Property Value
- TResult