Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LocalDomainEventArgs.cs
1using System;
2
3namespace Waher.Content
4{
8 public class LocalDomainEventArgs : EventArgs
9 {
10 private bool? isLocal = null;
11
18 {
19 this.DomainOrHost = DomainOrHost;
20 this.IncludeAlternativeDomains = IncludeAlternativeDomains;
21 }
22
26 public bool? IsLocal
27 {
28 get => this.isLocal;
29 set
30 {
31 if (this.isLocal.HasValue && this.isLocal != value)
32 throw new InvalidOperationException("Value has already been set.");
33
34 this.isLocal = value;
35 }
36 }
37
41 public string DomainOrHost
42 {
43 get;
44 private set;
45 }
46
51 {
52 get;
53 private set;
54 }
55 }
56}
Local domain check event arguments.
bool IncludeAlternativeDomains
If alternative domains are to be checked.
bool? IsLocal
If the domain is local or not.
string DomainOrHost
Domain or host name.
LocalDomainEventArgs(string DomainOrHost, bool IncludeAlternativeDomains)
Local domain check event arguments.