,System.IObservable{--1},System.Func{--0,System.IObservable{--2}},System.Func{--1,System.IObservable{--3}},System.Func{--0,System.IObservable{--1},--4})}
Observable.GroupJoin(IObservable, IObservable, Func>, Func>, Func, TResult>) method¶
Defined in
Type: Observable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public static IObservable<TResult> GroupJoin<TLeft, TRight, TLeftDuration, TRightDuration, TResult>(this IObservable<TLeft> left, IObservable<TRight> right, Func<TLeft, IObservable<TLeftDuration>> leftDurationSelector, Func<TRight, IObservable<TRightDuration>> rightDurationSelector, Func<TLeft, IObservable<TRight>, TResult> resultSelector)
Summary: Correlates the elements of two sequences based on overlapping durations, and groups the results.
Type parameters
| Name | Description |
|---|---|
TLeft | The type of the elements in the left source sequence. |
TRight | The type of the elements in the right source sequence. |
TLeftDuration | The type of the elements in the duration sequence denoting the computed duration of each element in the left source sequence. |
TRightDuration | The type of the elements in the duration sequence denoting the computed duration of each element in the right source sequence. |
TResult | The type of the elements in the result sequence, obtained by invoking the result selector function for source elements with overlapping duration. |
Parameters
| Name | Type | Description |
|---|---|---|
left | IObservable | The left observable sequence to join elements for. |
right | IObservable | The right observable sequence to join elements for. |
leftDurationSelector | Func | A function to select the duration of each element of the left observable sequence, used to determine overlap. |
rightDurationSelector | Func | A function to select the duration of each element of the right observable sequence, used to determine overlap. |
resultSelector | Func | A function invoked to compute a result element for any element of the left sequence with overlapping elements from the right observable sequence. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | left or right or leftDurationSelector or rightDurationSelector or resultSelector is null. |