Observable.FromAsyncPattern<T1, T2, TResult> Yöntemi (Func<T1, T2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
Başlangıç/Bitiş çağırma işlev çiftlerini zaman uyumsuz bir işleve dönüştürür.
Ad Alanı:System.Reactive.Linq
Derleme: System.Reactive (System.Reactive.dll içinde)
Syntax
'Declaration
Public Shared Function FromAsyncPattern(Of T1, T2, TResult) ( _
begin As Func(Of T1, T2, AsyncCallback, Object, IAsyncResult), _
end As Func(Of IAsyncResult, TResult) _
) As Func(Of T1, T2, IObservable(Of TResult))
'Usage
Dim begin As Func(Of T1, T2, AsyncCallback, Object, IAsyncResult)
Dim end As Func(Of IAsyncResult, TResult)
Dim returnValue As Func(Of T1, T2, IObservable(Of TResult))
returnValue = Observable.FromAsyncPattern(begin, _
end)
public static Func<T1, T2, IObservable<TResult>> FromAsyncPattern<T1, T2, TResult>(
Func<T1, T2, AsyncCallback, Object, IAsyncResult> begin,
Func<IAsyncResult, TResult> end
)
public:
generic<typename T1, typename T2, typename TResult>
static Func<T1, T2, IObservable<TResult>^>^ FromAsyncPattern(
Func<T1, T2, AsyncCallback^, Object^, IAsyncResult^>^ begin,
Func<IAsyncResult^, TResult>^ end
)
static member FromAsyncPattern :
begin:Func<'T1, 'T2, AsyncCallback, Object, IAsyncResult> *
end:Func<IAsyncResult, 'TResult> -> Func<'T1, 'T2, IObservable<'TResult>>
JScript does not support generic types and methods.
Tür Parametreleri
- T1
İlk işlev türü.
- T2
İkinci işlev türü.
- Tresult
Sonucun türü.
Parametreler
- başla
Tür: System.Func<T1, T2, AsyncCallback, Object, IAsyncResult>
begin invoke işlevi.
- end
Tür: System.Func<IAsyncResult, TResult>
end invoke işlevi.
Dönüş Değeri
Tür: System.Func<T1, T2, IObservable<TResult>>
Başlangıç/Bitiş çağrısı işlev çifti.