Observable.FromAsyncPattern<T1, T2> Method (Func<T1, T2, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>)

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, T2, IObservable<Unit>> FromAsyncPattern<T1, T2>(
	Func<T1, T2, AsyncCallback, Object, IAsyncResult> begin,
	Action<IAsyncResult> end
)

Type Parameters

T1
T2

Parameters

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

Return Value

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

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: