Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
End.cs
1using System.Threading.Tasks;
2
4{
8 public class End : ActionNode
9 {
13 public End()
14 : base()
15 {
16 }
17
21 public override string LocalName => nameof(End);
22
27 public override IStateMachineNode Create()
28 {
29 return new End();
30 }
31
36 public override async Task Execute(EvaluationArguments Arguments)
37 {
38 await StateMachine.GoToState(string.Empty, Arguments);
39
40 Arguments.Profiler?.Stop();
41 }
42 }
43}
Abstract base class for State-Machine action nodes.
Definition: ActionNode.cs:9
override IStateMachineNode Create()
Creates a new node of the corresponding type.
Definition: End.cs:27
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
Definition: End.cs:36
Contains information required for evaluating script in a state-machine.
Class representing a state machine.
Definition: StateMachine.cs:37
static async Task GoToState(string StateId, EvaluationArguments Arguments)
Goes to a new state.