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