The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

WhenAnyObservableMixin.

WhenAnyObservable<TSender, TRet, T1, T2, T3, T4, T5, T6, T7>(TSender, Expression<Func<TSender, IObservable<T1>>>, Expression<Func<TSender, IObservable<T2>>>, Expression<Func<TSender, IObservable<T3>>>, Expression<Func<TSender, IObservable<T4>>>, Expression<Func<TSender, IObservable<T5>>>, Expression<Func<TSender, IObservable<T6>>>, Expression<Func<TSender, IObservable<T7>>>, Func<T1, T2, T3, T4, T5, T6, T7, TRet>) Method

Summary

Monitor a property that is an observable, and subscribe to the most recent emitted value.
Namespace
ReactiveUI
Containing Type
WhenAnyObservableMixin

Syntax

public static IObservable<TRet> WhenAnyObservable<TSender, TRet, T1, T2, T3, T4, T5, T6, T7>(this TSender sender, Expression<Func<TSender, IObservable<T1>>> obs1, Expression<Func<TSender, IObservable<T2>>> obs2, Expression<Func<TSender, IObservable<T3>>> obs3, Expression<Func<TSender, IObservable<T4>>> obs4, Expression<Func<TSender, IObservable<T5>>> obs5, Expression<Func<TSender, IObservable<T6>>> obs6, Expression<Func<TSender, IObservable<T7>>> obs7, Func<T1, T2, T3, T4, T5, T6, T7, TRet> selector) 
    where TSender : class

Type Parameters

Name Description
TSender
TRet
T1
T2
T3
T4
T5
T6
T7

Parameters

Name Type Description
sender TSender The object where the property chain starts.
obs1 Expression<Func<TSender, IObservable<T1>>> The 1 property chain to reference.
obs2 Expression<Func<TSender, IObservable<T2>>> The 2 property chain to reference.
obs3 Expression<Func<TSender, IObservable<T3>>> The 3 property chain to reference.
obs4 Expression<Func<TSender, IObservable<T4>>> The 4 property chain to reference.
obs5 Expression<Func<TSender, IObservable<T5>>> The 5 property chain to reference.
obs6 Expression<Func<TSender, IObservable<T6>>> The 6 property chain to reference.
obs7 Expression<Func<TSender, IObservable<T7>>> The 7 property chain to reference.
selector Func<T1, T2, T3, T4, T5, T6, T7, TRet> The selector which will determine the final value from the properties. This must be an observable.

Return Value

Type Description
IObservable<TRet>