Skip to content

},System.Func{--0,System.Boolean})} },System.IObservable{System.Func{--0,System.Boolean}})} },System.IObservable{System.Func{--0,System.Boolean}},System.IObservable{System.Reactive.Unit})}

ObservableCacheAlias.Where(IObservable>, Func) method

Defined in

Type: ObservableCacheAlias Namespace: DynamicData.Alias Assembly: DynamicData.dll

Applies to

net10.0, netstandard2.0

Overloads

  1. public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, bool> filter) where TObject : notnull where TKey : notnull

  2. public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged) where TObject : notnull where TKey : notnull

  3. public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged, IObservable<Unit> reapplyFilter) where TObject : notnull where TKey : notnull

1. Overload

public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, bool> filter) where TObject : notnull where TKey : notnull

View source

Summary: Filters the specified source.

Type parameters

NameDescription
TObjectThe type of the object.
TKeyThe type of the key.

Parameters

NameTypeDescription
sourceIObservable>The source.
filterFuncThe filter.

Returns: IObservable> -- An observable which emits the change set.

2. Overload

public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged) where TObject : notnull where TKey : notnull

View source

Summary: Creates a filtered stream which can be dynamically filtered.

Type parameters

NameDescription
TObjectThe type of the object.
TKeyThe type of the key.

Parameters

NameTypeDescription
sourceIObservable>The source.
predicateChangedIObservable>Observable to change the underlying predicate.

Returns: IObservable> -- An observable which emits the change set.

3. Overload

public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged, IObservable<Unit> reapplyFilter) where TObject : notnull where TKey : notnull

View source

Summary: Creates a filtered stream which can be dynamically filtered.

Type parameters

NameDescription
TObjectThe type of the object.
TKeyThe type of the key.

Parameters

NameTypeDescription
sourceIObservable>The source.
predicateChangedIObservable>Observable to change the underlying predicate.
reapplyFilterIObservableObservable to re-evaluate whether the filter still matches items. Use when filtering on mutable values.

Returns: IObservable> -- An observable which emits the change set.