1using System.Threading.Tasks;
59 public override async Task
Parse(XmlElement Xml)
61 await base.Parse(Xml);
83 base.OnChildNodesUpdated();
85 this.to = this.GetValueElement<To>();
86 this.subject = this.GetValueElement<Subject>();
87 this.content = this.GetValueElement<Notes.Content>();
96 string To = (await this.to.
Evaluate(Arguments))?.ToString();
97 string Subject = ((await this.subject.
Evaluate(Arguments))?.ToString()) ??
"N/A";
101 if (!(
Content is
string Markdown))
115 bool HasHeader = HeaderEndPos.HasValue && HeaderEndPos.Value > 0;
Class that can be used to encapsulate Markdown to be returned from a Web Service, bypassing any encod...
MarkdownSettings Settings
Markdown settings, if provided.
string Markdown
Markdown content.
Contains a markdown document. This markdown document class supports original markdown,...
static ? int HeaderEndPosition(string Markdown)
Gets the end position of the header, if one is found, null otherwise.
static async Task< string > Preprocess(string Markdown, MarkdownSettings Settings, params Type[] TransparentExceptionTypes)
Preprocesses markdown text.
Contains settings that the Markdown parser uses to customize its behavior.
Static class managing the runtime environment of the IoT Gateway.
static Emoji1LocalFiles Emoji1_24x24
Emojis.
Abstract base class for State-Machine action nodes.
override async Task Parse(XmlElement Xml)
Parses the State-machine node.
override void OnChildNodesUpdated()
Method called whenever ChildNodes is updated.
override string LocalName
Local name
override IStateMachineNode Create()
Creates a new node of the corresponding type.
MailMessage()
Defines a Mail action
Notes.Content Content
Content value
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
Defines to whom a payment (or message) is sent.
Contains information required for evaluating script in a state-machine.
Variables Variables
Current set of variables.
void ConvertValueAttributesToElements(XmlElement Xml, Type[] ValueTypes, bool[] Required)
Converts value attributes to parsed elements. The XML definition has to be parsed before,...
Task< object > Evaluate(EvaluationArguments Arguments)
Evaluates the value node.
Service Module hosting the XMPP broker and its components.
static Task< bool > SendMailMessage(string To, string Subject, string Markdown)
Sends a mail message
Interface for State-Machine nodes