Observable.Create<TSource> Method (Func<IObserver<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)


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

returnValue = Observable.Create(subscribe)
public static IObservable<TSource> Create<TSource>(
    Func<IObserver<TSource>, Action> subscribe
generic<typename TSource>
static IObservable<TSource>^ Create(
    Func<IObserver<TSource>^, Action^>^ subscribe
static member Create : 
        subscribe:Func<IObserver<'TSource>, Action> -> IObservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.


  • subscribe
    Type: System.Func<IObserver<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<TSource>
The observable sequence with the specified implementation for the subscribe method.

See Also


Observable Class

Create Overload

System.Reactive.Linq Namespace