3using System.Threading.Tasks;
22 : base(
"Wallet/GetTransactionInformation",
23 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
43 string TransactionIdStr = (string)Parameters[
"PTransactionId"].AssociatedObjectValue;
44 string TabId = Parameters.TryGetValue(
"PTabId", out
IElement E) ? (string)E?.AssociatedObjectValue :
null;
45 string FunctionName = Parameters.TryGetValue(
"PFunctionName", out E) ? (string)E?.AssociatedObjectValue :
null;
47 if (!Guid.TryParse(TransactionIdStr, out Guid TransactionId))
50 if (!PaymentTransactions.TryGetTransaction(TransactionId, out PaymentTransaction Transaction))
53 if (Transaction.UserName != User.
UserName)
56 if (!
string.IsNullOrEmpty(TabId) || !
string.IsNullOrEmpty(FunctionName))
58 if (!
string.IsNullOrEmpty(TabId))
59 Transaction.TabId = TabId;
61 if (!
string.IsNullOrEmpty(FunctionName))
62 Transaction.FunctionName = FunctionName;
64 await Transaction.PushToClient();
67 await Response.
Return(Transaction.GetInformation());
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repe...
The server understood the request, but is refusing to fulfill it. Authorization will not help and the...
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...
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.
string UserName
User Name.
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.
Basic interface for all types of elements.