Class SubscriptionVisitor
Base class for subscription visitors performing actions on each operator node in a subscription tree.
Implements
Namespace: Reaqtive
Assembly: Reaqtive.Core.dll
Syntax
public class SubscriptionVisitor : Object, ISubscriptionVisitor
Constructors
SubscriptionVisitor()
Declaration
public SubscriptionVisitor()
Methods
Do<T>(Action<T>)
Creates a new subscription visitor that applies the specified action to each operator node of the specified type in a subscription tree.
Declaration
public static SubscriptionVisitorBuilder<T> Do<T>(Action<T> visit)
where T : class, IOperator
Parameters
Type | Name | Description |
---|---|---|
System.Action<T> | visit | Action applied to each operator node of the specified type. |
Returns
Type | Description |
---|---|
SubscriptionVisitorBuilder<T> | Subscription visitor that will apply the specified action to each matching operator node. |
Type Parameters
Name | Description |
---|---|
T | Type of the operators processed by the specified action. This type should implement IOperator. |
Visit(IOperator)
Visits the specified operator node.
Declaration
public virtual void Visit(IOperator node)
Parameters
Type | Name | Description |
---|---|---|
IOperator | node | Node to apply the visitor to. |
VisitCore(IOperator)
Core implementation of the visitor functionality.
Declaration
protected virtual void VisitCore(IOperator node)
Parameters
Type | Name | Description |
---|---|---|
IOperator | node | Node to apply the visitor to. |