Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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)

static member GroupJoin : 
        left:IObservable<'TLeft> * 
        right:IObservable<'TRight> * 
        leftDurationSelector:Func<'TLeft, IObservable<'TLeftDuration>> * 
        rightDurationSelector:Func<'TRight, IObservable<'TRightDuration>> * 
        resultSelector:Func<'TLeft, IObservable<'TRight>, 'TResult> -> IObservable<'TResult> 

Type Parameters


The type of left.


The type of right.


The type of left duration.


The type of right duration.


The type of result.


Type: System.IObservable(TLeft)
The left observable sequence to join elements for.
Type: System.IObservable(TRight)
The right observable sequence to join elements for.
Type: System.Func(TLeft, IObservable(TLeftDuration))
A function to select the duration of each element of the left observable sequence, used to determine overlap.
Type: System.Func(TRight, IObservable(TRightDuration))
A function to select the duration of each element of the right observable sequence, used to determine overlap.
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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable(TLeft). When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
© 2015 Microsoft