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

Creates an observer from the specified OnNext action.

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

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

returnValue = Observer.Create(onNext)

Type Parameters

T

The observer argument type.

Parameters

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

Return Value

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