Class SubscriptionVisitorBuilder<T1>
Builder for subscription visitors performing actions on each operator node in a subscription tree.
Inheritance
Namespace: Reaqtive
Assembly: Reaqtive.Core.dll
Syntax
public class SubscriptionVisitorBuilder<T1> : Object where T1 : class, IOperator
Type Parameters
Name | Description |
---|---|
T1 | Type of the operators processed by the visitor's action. This type should implement IOperator. |
Constructors
SubscriptionVisitorBuilder(Action<T1>)
Creates a new builder for subscription visitors with the specified action to visit operator nodes.
Declaration
public SubscriptionVisitorBuilder(Action<T1> visit1)
Parameters
Type | Name | Description |
---|---|---|
System.Action<T1> | visit1 | Action applied to each operator node of the specified type. |
Methods
Apply(ISubscription)
Applies the visitor to the specified subscription.
Declaration
public void Apply(ISubscription subscription)
Parameters
Type | Name | Description |
---|---|---|
ISubscription | subscription | Subscription to apply the visitor to. |
Do<T2>(Action<T2>)
Creates a new subscription visitor that applies the specified action to each operator node of the specified type in a subscription tree, in addition to the current visitor's action.
Declaration
public SubscriptionVisitorBuilder<T1, T2> Do<T2>(Action<T2> visit2)
where T2 : class, IOperator
Parameters
Type | Name | Description |
---|---|---|
System.Action<T2> | visit2 | Action applied to each operator node of the specified type. |
Returns
Type | Description |
---|---|
SubscriptionVisitorBuilder<T1, T2> | Subscription visitor that will apply the current visitor's action and the specified action to each matching operator node. |
Type Parameters
Name | Description |
---|---|
T2 | Type of the operators processed by the specified action. This type should implement IOperator. |