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, T8, T9, T10>(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>?>>, Expression<Func<TSender, IObservable<T8>?>>, Expression<Func<TSender, IObservable<T9>?>>, Expression<Func<TSender, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, 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, T8, T9, T10>(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, Expression<Func<TSender, IObservable<T8>?>> obs8, Expression<Func<TSender, IObservable<T9>?>> obs9, Expression<Func<TSender, IObservable<T10>?>> obs10, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet> selector) 
    where TSender : class

Type Parameters

Name Description
TSender
TRet
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

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.
obs8 Expression<Func<TSender, IObservable<T8>?>> The 8 property chain to reference.
obs9 Expression<Func<TSender, IObservable<T9>?>> The 9 property chain to reference.
obs10 Expression<Func<TSender, IObservable<T10>?>> The 10 property chain to reference.
selector Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet> The selector which will determine the final value from the properties. This must be an observable.

Return Value

Type Description
IObservable<TRet>