,System.IObservable{--1},System.Linq.Expressions.Expression}},System.Linq.Expressions.Expression{System.Func{--1,System.IObservable{--3}}},System.Linq.Expressions.Expression{System.Func{--0,System.IObservable{--1},--4}})}
Qbservable.GroupJoin(IQbservable, IObservable, Expression>>, Expression>>, Expression, TResult>>) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public static IQbservable<TResult> GroupJoin<TLeft, TRight, TLeftDuration, TRightDuration, TResult>(this IQbservable<TLeft> left, IObservable<TRight> right, Expression<Func<TLeft, IObservable<TLeftDuration>>> leftDurationSelector, Expression<Func<TRight, IObservable<TRightDuration>>> rightDurationSelector, Expression<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 | [IQbservable | The left observable sequence to join elements for. |
right | IObservable | The right observable sequence to join elements for. |
leftDurationSelector | Expression | A function to select the duration of each element of the left observable sequence, used to determine overlap. |
rightDurationSelector | Expression | A function to select the duration of each element of the right observable sequence, used to determine overlap. |
resultSelector | Expression | A function invoked to compute a result element for any element of the left sequence with overlapping elements from the right observable sequence. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | left or right or leftDurationSelector or rightDurationSelector or resultSelector is null. |