Observable.RefCount<TSource> Method

March 22, 2012

Returns an observable sequence that stays connected to the source as long as there is at least one subscription to the observable sequence.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<TSource> RefCount<TSource>(
	this IConnectableObservable<TSource> source

Type Parameters


Return Value

Type: System.IObservable<TSource>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConnectableObservable<TSource>. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone