Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
GeneralEventNode.cs
1using System.Threading.Tasks;
5
7{
11 public abstract class GeneralEventNode : EventNode
12 {
17 : base()
18 {
19 }
20
28 public override async Task<bool> Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
29 {
30 GeneralEventHandler Handler = new GeneralEventHandler(Arguments, EventIndex, this);
31
32 await Database.Insert(Handler);
33 await Handler.AddToCache();
34
35 return false;
36 }
37
38 }
39}
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Definition: Database.cs:19
static async Task Insert(object Object)
Inserts an object into the default collection of the database.
Definition: Database.cs:95
async Task AddToCache()
Removes the event handler from the cache.
Contains information required for evaluating script in a state-machine.
Abstract base class for State-Machine event nodes.
Definition: EventNode.cs:10
override async Task< bool > Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
Registers the event
GeneralEventNode()
Abstract base class for general event nodes.
Action executed when entering a state.
Definition: OnEvent.cs:17