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

WhenAnyObservableMixin.

WhenAnyObservable<TSender, TRet>(TSender, Expression<Func<TSender, IObservable<TRet>?>>, Expression<Func<TSender, IObservable<TRet>?>>, Expression<Func<TSender, IObservable<TRet>?>>, Expression<Func<TSender, IObservable<TRet>?>>, Expression<Func<TSender, IObservable<TRet>?>>, Expression<Func<TSender, IObservable<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>(this TSender sender, Expression<Func<TSender, IObservable<TRet>?>> obs1, Expression<Func<TSender, IObservable<TRet>?>> obs2, Expression<Func<TSender, IObservable<TRet>?>> obs3, Expression<Func<TSender, IObservable<TRet>?>> obs4, Expression<Func<TSender, IObservable<TRet>?>> obs5, Expression<Func<TSender, IObservable<TRet>?>> obs6) 
    where TSender : class

Type Parameters

Name Description
TSender
TRet

Parameters

Name Type Description
sender TSender The object where the property chain starts.
obs1 Expression<Func<TSender, IObservable<TRet>?>> The 1 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable.
obs2 Expression<Func<TSender, IObservable<TRet>?>> The 2 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable.
obs3 Expression<Func<TSender, IObservable<TRet>?>> The 3 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable.
obs4 Expression<Func<TSender, IObservable<TRet>?>> The 4 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable.
obs5 Expression<Func<TSender, IObservable<TRet>?>> The 5 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable.
obs6 Expression<Func<TSender, IObservable<TRet>?>> The 6 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable.

Return Value

Type Description
IObservable<TRet>