Observable.Run<TSource> Method (IObservable<TSource>, Action<TSource>, Action)

March 22, 2012

Invokes the action for its side effects on each value in the observable sequence and blocks until the sequence is terminated.

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

public static void Run<TSource>(
	this IObservable<TSource> source,
	Action<TSource> onNext,
	Action onCompleted
)

Type Parameters

TSource

Parameters

source
Type: System.IObservable<TSource>
onNext
Type: System.Action<TSource>
onCompleted
Type: System.Action

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<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

Show: