Interface IMongoDBJoinedObserveBuilder<T1, T2>
- Namespace
- Cratis.Arc.MongoDB
- Assembly
- Cratis.Arc.MongoDB.dll
Defines the builder for observing two joined collections.
public interface IMongoDBJoinedObserveBuilder<T1, T2>
Type Parameters
T1Type of the first (primary) document.
T2Type of the second (joined) document.
- Extension Methods
Methods
Join<T3>(Expression<Func<T3, bool>>?)
Joins with another collection in the observation.
IMongoDBJoinedObserveBuilder<T1, T2, T3> Join<T3>(Expression<Func<T3, bool>>? filter = null)
Parameters
filterExpression<Func<T3, bool>>Optional filter expression for the joined documents.
Returns
- IMongoDBJoinedObserveBuilder<T1, T2, T3>
A IMongoDBJoinedObserveBuilder<T1, T2, T3> for further chaining or finalizing.
Type Parameters
T3Type of the third document.
Select<TResult>(Func<IEnumerable<T1>, IEnumerable<T2>, TResult>)
Combines the observed collections into a reactive subject that emits a result whenever any collection changes.
ISubject<TResult> Select<TResult>(Func<IEnumerable<T1>, IEnumerable<T2>, TResult> selector)
Parameters
selectorFunc<IEnumerable<T1>, IEnumerable<T2>, TResult>A function that combines both collections into a single result value.
Returns
- ISubject<TResult>
An System.Reactive.Subjects.ISubject<T> that emits the combined result whenever any observed collection changes.
Type Parameters
TResultType of the combined result.