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

Return Value

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

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: