Observable.FromAsyncPattern<TResult> Method (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
Converts a Begin/End invoke function pair into an asynchronous function.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
public static Func<IObservable<TResult>> FromAsyncPattern<TResult>( Func<AsyncCallback, Object, IAsyncResult> begin, Func<IAsyncResult, TResult> end )
Type Parameters
- TResult
The type of result.
Parameters
- begin
- Type: System.Func<AsyncCallback, Object, IAsyncResult>
The begin invoke function.
- end
- Type: System.Func<IAsyncResult, TResult>
The end invoke function.