Observable::GroupJoin<TLeft, TRight, TLeftDuration, TRightDuration, TResult> Method
Correlates the elements of two sequences based on overlapping durations, and groups the results.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
[ExtensionAttribute] public: generic<typename TLeft, typename TRight, typename TLeftDuration, typename TRightDuration, typename TResult> static IObservable<TResult>^ GroupJoin( IObservable<TLeft>^ left, IObservable<TRight>^ right, Func<TLeft, IObservable<TLeftDuration>^>^ leftDurationSelector, Func<TRight, IObservable<TRightDuration>^>^ rightDurationSelector, Func<TLeft, IObservable<TRight>^, TResult>^ resultSelector )
Type Parameters
- TLeft
The type of left.
- TRight
The type of right.
- TLeftDuration
The type of left duration.
- TRightDuration
The type of right duration.
- TResult
The type of result.
Parameters
- left
- Type: System::IObservable<TLeft>
The left observable sequence to join elements for.
- right
- Type: System::IObservable<TRight>
The right observable sequence to join elements for.
- leftDurationSelector
- Type: System::Func<TLeft, IObservable<TLeftDuration>>
A function to select the duration of each element of the left observable sequence, used to determine overlap.
- rightDurationSelector
- Type: System::Func<TRight, IObservable<TRightDuration>>
A function to select the duration of each element of the right observable sequence, used to determine overlap.
- resultSelector
- Type: System::Func<TLeft, IObservable<TRight>, TResult>
A function invoked to compute a result element for any element of the left sequence with overlapping elements from the right observable sequence.
Return Value
Type: System::IObservable<TResult>An observable sequence that contains result elements computed from source elements that have an overlapping duration.