2using System.Collections.Generic;
3using System.Threading.Tasks;
25 : base(
"Storage/LoadPrivateXml",
26 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
46 string LocalName = (string)Parameters[
"PLocalName"].AssociatedObjectValue;
47 string Namespace = (string)Parameters[
"PNamespace"].AssociatedObjectValue;
55 XmlDocument Doc =
new XmlDocument()
57 PreserveWhitespace =
true
64 {
"created", Element.Created },
65 {
"updated", Element.Updated },
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
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.
Represents an HTTP request.
Represets a response of an HTTP client request.
async Task Return(object Object)
Returns an object to the client. This method can only be called once per response,...
The server has not found anything matching the Request-URI. No indication is given of whether the con...
Contains information about one persisted XML element.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
This filter selects objects that conform to all child-filters provided.
This filter selects objects that have a named field equal to a given value.
Base class for all types of elements.
Class managing a script expression.
string UserName
User Name.
Abstract base class for agent resources supporting the POST method.
Abstract base class for agent resources
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
Loads private XML for the account.
LoadPrivateXml()
Loads private XML for the account.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.