Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ContractPetitionResponseEventArgs.cs
1using System.Xml;
3
5{
10 {
11 private readonly Contract requestedContract;
12 private readonly string petitionId;
13 private readonly bool response;
14 private readonly string clientEndpoint;
15 private readonly XmlElement context;
16
27 bool Response, string ClientEndpoint, XmlElement Context)
28 : base(e)
29 {
30 this.requestedContract = RequestedContract;
31 this.petitionId = PetitionId;
32 this.response = Response;
33 this.clientEndpoint = ClientEndpoint;
34 this.context = Context;
35 }
36
40 public Contract RequestedContract => this.requestedContract;
41
45 public string PetitionId => this.petitionId;
46
50 public bool Response => this.response;
51
55 public string ClientEndpoint => this.clientEndpoint;
56
60 public XmlElement Context => this.context;
61 }
62}
Contains the definition of a contract
Definition: Contract.cs:22
ContractPetitionResponseEventArgs(MessageEventArgs e, Contract RequestedContract, string PetitionId, bool Response, string ClientEndpoint, XmlElement Context)
Event arguments for smart contract petition responses
XmlElement Context
Any machine-readable context XML element available in the petition.
Event arguments for message events.