2using System.Threading.Tasks;
44 if (!(
Content is
string TextContent))
48 if (!(this.Personal is
null))
50 if (await this.Personal.Evaluate(Arguments) is
bool b)
63 Timestamp = DateTime.UtcNow,
69 _ = Task.Run(async () =>
73 if (Arguments.
Token is
null)
Class representing an event.
Static class managing the application event log. Applications and services log events on this static ...
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static async Task Insert(object Object)
Inserts an object into the default collection of the database.
A text note logged on the token.
Exception related to state machine.
Abstract base class for note actions.
Personal Personal
Personal value
Defines if a note is personal or not.
TextNote()
Adds a text note.
override IStateMachineNode Create()
Creates a new node of the corresponding type.
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
override string LocalName
Local name
Contains information required for evaluating script in a state-machine.
StateMachine Machine
Reference to state-machine definition.
Token Token
Reference to related token.
Task< object > Evaluate(EvaluationArguments Arguments)
Evaluates the value node.
Duration? ArchiveRequired
Duration after which token expires, the token is required to be archived.
CaseInsensitiveString StateMachineId
ID of State Machine.
Duration? ArchiveOptional
Duration after which token expires, and the required archiving time, the token can optionally be arch...
DateTime Expires
When state-machine expires
Interface for State-Machine nodes