2using System.Text.RegularExpressions;
10 [CollectionName(
"ApiKeys")]
14 [Index(
"Owner",
"Key")]
17 internal static readonly Regex UnitTests =
new Regex(
@"Waher[.]Service[.]IoTBroker[.]Test[.](LegalIdentitiesTests|SmartContractsTests|AgentTests)",
18 RegexOptions.Compiled | RegexOptions.Singleline);
22 typeof(Persistence.NeuroLedger.NeuroLedgerProvider).Assembly,
23 typeof(NeuroLedger.NeuroLedgerModule).Assembly,
24 typeof(Content.Markdown.Web.MarkdownToHtmlConverter),
25 typeof(Content.Markdown.Web.WebScript.WsToX),
26 typeof(Content.Markdown.MarkdownDocument),
28 Account.FromUpdateObject
33 typeof(Persistence.NeuroLedger.NeuroLedgerProvider).Assembly,
34 typeof(NeuroLedger.NeuroLedgerModule).Assembly,
35 typeof(Content.Markdown.Web.MarkdownToHtmlConverter),
36 typeof(Content.Markdown.Web.WebScript.WsToX),
37 typeof(Content.Markdown.MarkdownDocument),
40 "System.Threading.PortableThreadPool+WorkerThread",
44 private string objectId =
null;
45 private string key =
string.Empty;
46 private string secret =
string.Empty;
47 private string owner =
string.Empty;
49 private DateTime created = DateTime.MinValue;
50 private DateTime firstAccount = DateTime.MinValue;
51 private DateTime lastAccount = DateTime.MinValue;
52 private long maxAccounts = 0;
53 private long nrCreated = 0;
54 private long nrDeleted = 0;
61 public string ObjectId
64 set => this.objectId = value;
70 set => this.key = value;
73 [DefaultValueStringEmpty]
84 if (!
string.IsNullOrEmpty(this.secret))
94 set => this.owner = value;
97 [DefaultValueStringEmpty]
101 set => this.eMail = value;
104 [DefaultValueDateTimeMinValue]
105 public DateTime Created
108 set => this.created = value;
111 [DefaultValueDateTimeMinValue]
112 public DateTime FirstAccount
114 get => this.firstAccount;
115 set => this.firstAccount = value;
118 [DefaultValueDateTimeMinValue]
119 public DateTime LastAccount
121 get => this.lastAccount;
122 set => this.lastAccount = value;
126 public long MaxAccounts
128 get => this.maxAccounts;
129 set => this.maxAccounts = value;
133 public long NrCreated
135 get => this.nrCreated;
136 set => this.nrCreated = value;
140 public long NrDeleted
142 get => this.nrDeleted;
143 set => this.nrDeleted = value;
static DomainConfiguration Instance
Current instance of configuration.
bool UseDomainName
If the server uses a domain name.
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
Static class containing methods that can be used to make sure calls are made from appropriate locatio...
static ICallStackCheck[] Convert(params object[] Sources)
Converts an array of objects into an array of ICallStackCheck objects, assuming each listed source is...
static void CallFromSource(params string[] Sources)
Makes sure the call is made from one of the listed sources.
Contains information about a broker account.
Service Module hosting the XMPP broker and its components.
Interface for call stack checks.
TypeNameSerialization
How the type name should be serialized.