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)
Syntax
'Declaration
<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))
'Usage
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, _
end)
public static Func<T1, IQbservable<Unit>> FromAsyncPattern<T1>(
this IQbservableProvider provider,
Expression<Func<T1, AsyncCallback, Object, IAsyncResult>> begin,
Expression<Action<IAsyncResult>> end
)
[ExtensionAttribute]
public:
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.
Parameters
- provider
Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
- begin
Type: System.Linq.Expressions.Expression<Func<T1, AsyncCallback, Object, IAsyncResult>>
The begin invoke function.
- end
Type: System.Linq.Expressions.Expression<Action<IAsyncResult>>
The end invoke 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 .