Interface INodeScript
Represents a node script
public interface INodeScript : IDisposable, IStorageModel, IPluginFeatureDependent
- Inherited Members
Properties
Context
Gets or sets the context of the node script, usually a Profile or ProfileConfiguration.
object? Context { get; set; }
Property Value
- object
Description
Gets the description of the node script.
string Description { get; }
Property Value
Name
Gets the name of the node script.
string Name { get; }
Property Value
Nodes
Gets an enumerable of all the nodes on this script.
IEnumerable<INode> Nodes { get; }
Property Value
ResultType
Gets the return type of the node script.
Type ResultType { get; }
Property Value
Methods
AddNode(INode)
Adds a node to the script
void AddNode(INode node)
Parameters
nodeINodeThe node to add
LoadConnections()
Loads missing connections between the nodes of this node script from storage
void LoadConnections()
RemoveNode(INode)
Removes a node from the script
Note: If the node is IDisposable you must dispose it yourself, unless you plan to reuse the node.
void RemoveNode(INode node)
Parameters
nodeINodeThe node to remove
Run()
Runs the script, evaluating nodes where needed
void Run()
Events
NodeAdded
Occurs whenever a node was added to the script
event EventHandler<SingleValueEventArgs<INode>>? NodeAdded
Event Type
NodeRemoved
Occurs whenever a node was removed from the script
event EventHandler<SingleValueEventArgs<INode>>? NodeRemoved