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

Type Parameters

T1

Return Value

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

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: