Class SubscriptionVisitor<T1, T2>
Subscription visitor performing actions on each operator node in a subscription tree.
Implements
Namespace: Reaqtive
Assembly: Reaqtive.Core.dll
Syntax
public class SubscriptionVisitor<T1, T2> : SubscriptionVisitor<T1>, ISubscriptionVisitor where T1 : class, IOperator where T2 : class, IOperator
Type Parameters
Name | Description |
---|---|
T1 | Type of the operators processed by the visitor's first action. This type should implement IOperator. |
T2 | Type of the operators processed by the visitor's second action. This type should implement IOperator. |
Constructors
SubscriptionVisitor(Action<T1>, Action<T2>)
Creates a new subscription visitor with the specified actions to visit operator nodes.
Declaration
public SubscriptionVisitor(Action<T1> visitor1, Action<T2> visitor2)
Parameters
Type | Name | Description |
---|---|---|
System.Action<T1> | visitor1 | Action applied to each operator node of type |
System.Action<T2> | visitor2 | Action applied to each operator node of type |
Methods
VisitCore(IOperator)
Core implementation of the visitor functionality applied to operators of type T2
.
Declaration
protected override void VisitCore(IOperator node)
Parameters
Type | Name | Description |
---|---|---|
IOperator | node | Node to apply the visitor to. |
Overrides
Reaqtive.SubscriptionVisitor<T1>.VisitCore(Reaqtive.IOperator)