1using System.Collections.Generic;
2using System.Threading.Tasks;
14 private readonly
bool validateServerSignature;
24 this.validateServerSignature = ValidateServerSignature;
33 if (this.validateServerSignature)
35 if (!this.
Uri.
EDaler.
Legal.Verify(
this.Uri.PreSign,
this.Uri.Signature) &&
36 (!
string.IsNullOrEmpty(IoTGateway.Gateway.Domain) ||
37 ((
this.Uri.EDaler.Server.Domain !=
"example.com") &&
38 (
this.Uri.EDaler.Server.Domain !=
"example2.com") &&
39 (
this.Uri.EDaler.Server.Domain !=
"example3.com"))))
42 return Task.FromResult(
false);
48 return Task.FromResult(
true);
57 return Task.FromResult(
true);
67 " eDaler destroyed.",
this.Uri.To.Address,
this.Uri.From.Address,
69 new KeyValuePair<string, object>(
"Amount",
this.Uri.TotalAmount),
70 new KeyValuePair<string, object>(
"Currency",
this.Uri.Currency),
71 new KeyValuePair<string, object>(
"RefId",
this.Uri.Id.ToString()),
72 new KeyValuePair<string, object>(
"Sender",
this.Uri.State.Sender.Value),
73 new KeyValuePair<string, object>(
"From",
this.Uri.From.Address.Value),
74 new KeyValuePair<string, object>(
"To",
this.Uri.To.Address.Value),
75 new KeyValuePair<string, object>(
"Uri",
this.Uri.UriString));
77 return Task.FromResult(
true);
86 return Task.FromResult(
true);
Static class managing the application event log. Applications and services log events on this static ...
static void Notice(string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
Logs a notice event.
LegalComponent Legal
Legal component
Abstract base class for eDaler transactions.
Handles the local destruction of eDaler.
override Task< bool > DoRollback()
Performs actual rollback.
LocalDestruction(EDalerUri Uri, bool ValidateServerSignature)
Handles the local destruction of eDaler.
override Task< bool > DoPrepare()
Performs actual preparation.
override Task< bool > DoExecute()
Performs actual execution.
override Task< bool > DoCommit()
Performs actual commit.
Abstract base class for eDaler URIs
EDalerUriState State
URI State object.
EDalerComponent EDaler
eDaler component reference
decimal TotalAmount
Total amount: Amount+AmountExtra
virtual void Error(EDalerUriErrorType ErrorType, string ErrorMessage, bool LogAsNotice)
Reports an error with the URI
EDalerUriErrorType
Type of URI Error