Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TokenEventNode.cs
1using System.Threading.Tasks;
5
7{
11 public abstract class TokenEventNode : EventNode
12 {
17 : base()
18 {
19 }
20
30 public override async Task<EventHandlerReference> Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
31 {
32 TokenEventHandler Handler = new TokenEventHandler(Arguments, EventIndex, this);
33
34 await Database.Insert(Handler);
35 await Handler.AddToCache();
36
37 return null;
38 }
39
40 }
41}
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Definition: Database.cs:21
static async Task Insert(object Object)
Inserts an object into the default collection of the database.
Definition: Database.cs:97
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:11
override async Task< EventHandlerReference > Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
Registers the event
TokenEventNode()
Abstract base class for token event nodes.
Action executed when entering a state.
Definition: OnEvent.cs:19