Qbservable.FromAsyncPattern<T1> Method (IQbservableProvider, Expression<Func<T1, AsyncCallback, Object, IAsyncResult>>, Expression<Action<IAsyncResult>>)

Converts a Begin/End invoke function pair into an asynchronous function.

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


<ExtensionAttribute> _
Public Shared Function FromAsyncPattern(Of T1) ( _
    provider As IQbservableProvider, _
    begin As Expression(Of Func(Of T1, AsyncCallback, Object, IAsyncResult)), _
    end As Expression(Of Action(Of IAsyncResult)) _
) As Func(Of T1, IQbservable(Of Unit))
Dim provider As IQbservableProvider
Dim begin As Expression(Of Func(Of T1, AsyncCallback, Object, IAsyncResult))
Dim end As Expression(Of Action(Of IAsyncResult))
Dim returnValue As Func(Of T1, IQbservable(Of Unit))

returnValue = provider.FromAsyncPattern(begin, _
public static Func<T1, IQbservable<Unit>> FromAsyncPattern<T1>(
    this IQbservableProvider provider,
    Expression<Func<T1, AsyncCallback, Object, IAsyncResult>> begin,
    Expression<Action<IAsyncResult>> end
generic<typename T1>
static Func<T1, IQbservable<Unit>^>^ FromAsyncPattern(
    IQbservableProvider^ provider, 
    Expression<Func<T1, AsyncCallback^, Object^, IAsyncResult^>^>^ begin, 
    Expression<Action<IAsyncResult^>^>^ end
static member FromAsyncPattern : 
        provider:IQbservableProvider * 
        begin:Expression<Func<'T1, AsyncCallback, Object, IAsyncResult>> * 
        end:Expression<Action<IAsyncResult>> -> Func<'T1, IQbservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.


Return Value

Type: System.Func<T1, IQbservable<Unit>>
A Begin/End invoke function pair.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also


Qbservable Class

FromAsyncPattern Overload

System.Reactive.Linq Namespace