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>?>>) Method

Summary

Observe a observable which is set to a property, and automatically 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) 
    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 first observable to observe.

Return Value

Type Description
IObservable<TRet>