4using System.Threading.Tasks;
30 : base(
"StateMachines/GetCurrentState",
31 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
50 string TokenId = (string)Parameters[
"PTokenId"].AssociatedObjectValue;
61 StringBuilder Xml =
new StringBuilder();
64 XmlDocument Doc =
XML.
ParseXml(Xml.ToString(),
true);
68 {
"CurrentState", Doc }
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
Helps with common XML-related tasks.
static XmlDocument ParseXml(string Xml)
Parses an XML Document from its string representation.
Static class managing the runtime environment of the IoT Gateway.
static CaseInsensitiveString Domain
Domain name.
Represents an HTTP request.
Represets a response of an HTTP client request.
Task Return(Exception ex)
Returns an error to the client.
The server has not found anything matching the Request-URI. No indication is given of whether the con...
Contains information about one XMPP address.
Static class managing loading of resources stored as embedded resources or in content files.
static string LoadResourceAsText(string ResourceName)
Loads a text resource from an embedded resource.
Class managing a script expression.
Marketplace processor, brokering sales of items via tenders and offers defined in smart contracts.
CaseInsensitiveString MachineId
State Machine ID, if any
Abstract base class for agent resources supporting the POST method.
static AccountUser AssertUserAuthenticated(HttpRequest Request)
Makes sure the request is made by an authenticated API user.
const string AgentNamespace
https://waher.se/Schema/BrokerAgent.xsd
GetCurrentState()
Gets a token
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.