Observable.Create(Of TSource) Method (Func(Of IObserver(Of TSource), Action))

Creates an observable sequence from a specified subscribe method implementation with a specified subscribe.

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

'Declaration
Public Shared Function Create(Of TSource) ( _
	subscribe As Func(Of IObserver(Of TSource), Action) _
) As IObservable(Of TSource)
'Usage
Dim subscribe As Func(Of IObserver(Of TSource), Action)
Dim returnValue As IObservable(Of TSource)

returnValue = Observable.Create(subscribe)

Type Parameters

TSource

The type of source.

Parameters

subscribe
Type: System.Func(Of IObserver(Of TSource), Action)
The implementation of the resulting observable sequence's subscribe method, returning an action delegate that will be wrapped in an IDisposable.

Return Value

Type: System.IObservable(Of TSource)
The observable sequence with the specified implementation for the subscribe method.
Show: