Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IfServiceToken.cs
1using System;
2using System.Xml;
3
5{
7 {
8 public IfServiceToken()
9 : base()
10 {
11 }
12
13 public override bool? Evaluate(Context Context)
14 {
15 if (Context.ServiceTokens is null || Array.IndexOf(Context.ServiceTokens, this.Value) < 0)
16 return null;
17
18 return base.Evaluate(Context);
19 }
20
25 public override void Export(XmlWriter Output)
26 {
27 Output.WriteStartElement("IfServiceToken", RuleNamespace);
28 Output.WriteAttributeString("value", this.Value);
29 base.ExportChildren(Output);
30 Output.WriteEndElement();
31 }
32 }
33}
override void Export(XmlWriter Output)
Exports the rule.
override? bool Evaluate(Context Context)
Tries to evaluate the rule.
const string RuleNamespace
http://waher.se/Schema/Provisioning/Rules.xsd
Definition: Rule.cs:16