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

WhenAnyObservableMixin.

WhenAnyObservable<TSender, TRet, T1, T2, T3>(TSender, Expression<Func<TSender, IObservable<T1>?>>, Expression<Func<TSender, IObservable<T2>?>>, Expression<Func<TSender, IObservable<T3>?>>, Func<T1?, T2?, T3?, 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>(this TSender sender, Expression<Func<TSender, IObservable<T1>?>> obs1, Expression<Func<TSender, IObservable<T2>?>> obs2, Expression<Func<TSender, IObservable<T3>?>> obs3, Func<T1?, T2?, T3?, TRet> selector) 
    where TSender : class

Type Parameters

Name Description
TSender
TRet
T1
T2
T3

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.
selector Func<T1?, T2?, T3?, TRet> The selector which will determine the final value from the properties. This must be an observable.

Return Value

Type Description
IObservable<TRet>