ICompositeListenerBuilder<TContext, TBaseNode>.With Method
Overloads
Name | Description |
---|---|
Add a listener for the base node type. Useful to provide a fallback listener when there is no listener for the specific node type registered. | |
Add a listener for the specific node type |
With(Listener<TContext, TBaseNode>)
Add a listener for the base node type. Useful to provide a fallback listener when there is no listener for the specific node type registered.
Parameters
Name | Type | Description |
---|---|---|
listener | The listener. |
Returns
ICompositeListenerBuilder<TContext, TBaseNode>
The fluent builder.
With<TNode>(Listener<TContext, TBaseNode, TNode>)
Add a listener for the specific node type TNode
. This can be a base node type which will be used if there is no listener for the specific node type registered.
Type Parameters
Name | Description |
---|---|
TNode | The type of the node |
Parameters
Name | Type | Description |
---|---|---|
listener | The listener. |
Returns
ICompositeListenerBuilder<TContext, TBaseNode>
The fluent builder.