Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OnContractSigned.cs
1using System.Threading.Tasks;
2using System.Xml;
6
8{
13 {
14 private ScriptableStringAttribute contractIdVariable;
15
20 : base()
21 {
22 }
23
27 [DefaultValueNull]
29 {
30 get => this.contractIdVariable?.Definition;
31 set => this.contractIdVariable = new ScriptableStringAttribute(value, this);
32 }
33
37 public override string LocalName => nameof(OnContractSigned);
38
43 public override IStateMachineNode Create()
44 {
45 return new OnContractSigned();
46 }
47
52 public override Task Parse(XmlElement Xml)
53 {
54 this.contractIdVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "contractIdVariable"), this);
55
56 return base.Parse(Xml);
57 }
58
62 public override string Label => nameof(OnContractSigned);
63 }
64}
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Event raised when a contract where the owner of the associated token is part, has become signed.
string ContractIdVariableDefinition
Contract ID Variable definition.
OnContractSigned()
Event raised when a contract where the owner of the associated token is part, has become signed.
override Task Parse(XmlElement Xml)
Parses the State-machine node.
override IStateMachineNode Create()
Creates a new node of the corresponding type.