Table of Contents

Class AggregationEx

Namespace
DynamicData.Aggregation
Assembly
DynamicData.dll

Aggregation extensions.

public static class AggregationEx
Inheritance
AggregationEx

Methods

ForAggregation<TObject>(IObservable<IChangeSet<TObject>>)

Transforms the change set into an enumerable which is suitable for high performing aggregations.

public static IObservable<IAggregateChangeSet<TObject>> ForAggregation<TObject>(this IObservable<IChangeSet<TObject>> source) where TObject : notnull

Parameters

source IObservable<IChangeSet<TObject>>

The source.

Returns

IObservable<IAggregateChangeSet<TObject>>

The aggregated change set.

Type Parameters

TObject

The type of the object.

ForAggregation<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>)

Transforms the change set into an enumerable which is suitable for high performing aggregations.

public static IObservable<IAggregateChangeSet<TObject>> ForAggregation<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

Returns

IObservable<IAggregateChangeSet<TObject>>

The aggregated change set.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

InvalidateWhen<T>(IObservable<T>, IObservable<Unit>)

Used to invalidate an aggregating stream. Used when there has been an inline change i.e. a property changed or meta data has changed.

public static IObservable<T> InvalidateWhen<T>(this IObservable<T> source, IObservable<Unit> invalidate)

Parameters

source IObservable<T>

The source.

invalidate IObservable<Unit>

The invalidate.

Returns

IObservable<T>

An observable which emits the value.

Type Parameters

T

The type of the item.

InvalidateWhen<T, TTrigger>(IObservable<T>, IObservable<TTrigger?>)

Used to invalidate an aggregating stream. Used when there has been an inline change.

public static IObservable<T> InvalidateWhen<T, TTrigger>(this IObservable<T> source, IObservable<TTrigger?> invalidate)

Parameters

source IObservable<T>

The source.

invalidate IObservable<TTrigger>

The invalidate.

Returns

IObservable<T>

An observable which emits the value.

Type Parameters

T

The type of the item.

TTrigger

The type of the trigger.