Observer.Create<T> Method (Action<T>, Action<Exception>, Action)

March 22, 2012

Creates an observer from the specified OnNext, OnError, and OnCompleted actions.

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

public static IObserver<T> Create<T>(
	Action<T> onNext,
	Action<Exception> onError,
	Action onCompleted
)

Type Parameters

T

Parameters

onNext
Type: System.Action<T>
onError
Type: System.Action<Exception>
onCompleted
Type: System.Action

Return Value

Type: System.IObserver<T>
Returns IObserver<T>.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: