Class Pattern<TSource1, TSource2>
Represents a join pattern over two observable sequences.
Inherited Members
Namespace: System.Reactive.Joins
Assembly: System.Reactive.Linq.dll
Syntax
public class Pattern<TSource1, TSource2> : Pattern
Type Parameters
Name | Description |
---|---|
TSource1 | The type of the elements in the first source sequence. |
TSource2 | The type of the elements in the second source sequence. |
Methods
| Improve this Doc View SourceAnd<TSource3>(IObservable<TSource3>)
Creates a pattern that matches when all three observable sequences have an available element.
Declaration
public Pattern<TSource1, TSource2, TSource3> And<TSource3>(IObservable<TSource3> other)
Parameters
Type | Name | Description |
---|---|---|
IObservable<TSource3> | other | Observable sequence to match with the two previous sequences. |
Returns
Type | Description |
---|---|
Pattern<TSource1, TSource2, TSource3> | Pattern object that matches when all observable sequences have an available element. |
Type Parameters
Name | Description |
---|---|
TSource3 | The type of the elements in the third observable sequence. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Then<TResult>(Func<TSource1, TSource2, TResult>)
Matches when all observable sequences have an available element and projects the elements by invoking the selector function.
Declaration
public Plan<TResult> Then<TResult>(Func<TSource1, TSource2, TResult> selector)
Parameters
Type | Name | Description |
---|---|---|
Func<TSource1, TSource2, TResult> | selector | Selector that will be invoked for elements in the source sequences. |
Returns
Type | Description |
---|---|
Plan<TResult> | Plan that produces the projected results, to be fed (with other plans) to the When operator. |
Type Parameters
Name | Description |
---|---|
TResult | The type of the elements in the result sequence, returned by the selector function. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|