Qbservable.FromAsyncPattern Method (IQbservableProvider, Expression<Func<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 ( _
provider As IQbservableProvider, _
begin As Expression(Of Func(Of AsyncCallback, Object, IAsyncResult)), _
end As Expression(Of Action(Of IAsyncResult)) _
) As Func(Of IQbservable(Of Unit))
'Usage
Dim provider As IQbservableProvider
Dim begin As Expression(Of Func(Of AsyncCallback, Object, IAsyncResult))
Dim end As Expression(Of Action(Of IAsyncResult))
Dim returnValue As Func(Of IQbservable(Of Unit))
returnValue = provider.FromAsyncPattern(begin, _
end)
public static Func<IQbservable<Unit>> FromAsyncPattern(
this IQbservableProvider provider,
Expression<Func<AsyncCallback, Object, IAsyncResult>> begin,
Expression<Action<IAsyncResult>> end
)
[ExtensionAttribute]
public:
static Func<IQbservable<Unit>^>^ FromAsyncPattern(
IQbservableProvider^ provider,
Expression<Func<AsyncCallback^, Object^, IAsyncResult^>^>^ begin,
Expression<Action<IAsyncResult^>^>^ end
)
static member FromAsyncPattern :
provider:IQbservableProvider *
begin:Expression<Func<AsyncCallback, Object, IAsyncResult>> *
end:Expression<Action<IAsyncResult>> -> Func<IQbservable<Unit>>
public static function FromAsyncPattern(
provider : IQbservableProvider,
begin : Expression<Func<AsyncCallback, Object, IAsyncResult>>,
end : Expression<Action<IAsyncResult>>
) : Func<IQbservable<Unit>>
Parameters
- provider
Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
- begin
Type: System.Linq.Expressions.Expression<Func<AsyncCallback, Object, IAsyncResult>>
The begin invoke function.
- end
Type: System.Linq.Expressions.Expression<Action<IAsyncResult>>
The end invoke function.
Return Value
Type: System.Func<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 .