Observer.Create(Of T) Method (Action(Of T), Action)

Creates an observer from the specified OnNext and OnCompleted actions.

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

'Declaration
Public Shared Function Create(Of T) ( _
	onNext As Action(Of T), _
	onCompleted As Action _
) As IObserver(Of T)
'Usage
Dim onNext As Action(Of T)
Dim onCompleted As Action
Dim returnValue As IObserver(Of T)

returnValue = Observer.Create(onNext, _
	onCompleted)

Type Parameters

T

The observer argument type.

Parameters

onNext
Type: System.Action(Of T)
The observer's OnNext action implementation.
onCompleted
Type: System.Action
The observer's OnCompleted action implementation.

Return Value

Type: System.IObserver(Of T)
The observer object implemented using the given actions.
Show: