,System.IObservable{--1},System.Linq.Expressions.Expression}},System.Linq.Expressions.Expression{System.Func{--1,System.IObservable{--3}}},System.Linq.Expressions.Expression{System.Func{--0,--1,--4}})}
Qbservable.Join(IQbservable, IObservable, Expression>>, Expression>>, Expression>) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public static IQbservable<TResult> Join<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, TRight, TResult>> resultSelector)
Summary: Correlates the elements of two sequences based on overlapping durations.
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 two overlapping elements of the left and right observable sequences. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | left or right or leftDurationSelector or rightDurationSelector or resultSelector is null. |