Table of Contents

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

TKey
TResult
Inheritance
AggregationResult<TKey, TResult>
Inherited Members

Properties

Accepted

true when the added message was accepted into the group.

public bool Accepted { get; }

Property Value

bool

Completed

true when this add completed the group.

public bool Completed { get; }

Property Value

bool

Count

Number of messages currently in the group snapshot.

public int Count { get; }

Property Value

int

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