Export (0) Print
Expand All

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

Creates an observer from the specified OnNext and OnError actions.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

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

Type Parameters

T

The observer argument type.

Parameters

onNext
Type: System.Action<T>
The observer's OnNext action implementation.
onError
Type: System.Action<Exception>
The observer's OnError action implementation.

Return Value

Type: System.IObserver<T>
The observer object implemented using the given actions.
Show:
© 2014 Microsoft