Observable.FromAsyncPattern<T1, TResult> Method (Func<T1, 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<T1, IObservable<TResult>> FromAsyncPattern<T1, TResult>(
	Func<T1, AsyncCallback, Object, IAsyncResult> begin,
	Func<IAsyncResult, TResult> end
)

Type Parameters

T1
TResult

Parameters

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

Return Value

Type: System.Func<T1, IObservable<TResult>>
Returns Func<T, TResult>.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: