Observer::Create<T> Method (Action<T>, Action)

Creates an observer from the specified OnNext and OnCompleted actions.

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

public:
generic<typename T>
static IObserver<T>^ Create(
	Action<T>^ onNext, 
	Action^ onCompleted
)

Type Parameters

T

The observer argument type.

Parameters

onNext
Type: System::Action<T>
The observer's OnNext action implementation.
onCompleted
Type: System::Action
The observer's OnCompleted action implementation.

Return Value

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