Observable.FromAsyncPattern<TResult> Method (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)

March 22, 2012

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

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static Func<IObservable<TResult>> FromAsyncPattern<TResult>(
	Func<AsyncCallback, Object, IAsyncResult> begin,
	Func<IAsyncResult, TResult> end
)

Type Parameters

TResult

Parameters

begin
Type: System.Func<AsyncCallback, Object, IAsyncResult>
end
Type: System.Func<IAsyncResult, TResult>

Return Value

Type: System.Func<IObservable<TResult>>
Returns Func<TResult>.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: