Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HostSetting.cs
1using Waher.Content;
3
5{
9 [TypeName(TypeNameSerialization.LocalName)]
10 [CollectionName("HostSettings")]
11 [ArchivingTime] // No Limit
12 [Index("Host", "Key")]
13 [Index("Key", "Host")]
14 public abstract class HostSetting : IHostReference
15 {
16 private string objectId = null;
17 private string host = string.Empty;
18 private string key = string.Empty;
19
23 public HostSetting()
24 {
25 }
26
32 public HostSetting(string Host, string Key)
33 {
34 this.host = Host;
35 this.key = Key;
36 }
37
41 [ObjectId]
42 public string ObjectId
43 {
44 get => this.objectId;
45 set => this.objectId = value;
46 }
47
51 public string Host
52 {
53 get => this.host;
54 set => this.host = value;
55 }
56
60 public string Key
61 {
62 get => this.key;
63 set => this.key = value;
64 }
65
70 public abstract object GetValueObject();
71 }
72}
Base abstract class for host settings.
Definition: HostSetting.cs:15
abstract object GetValueObject()
Gets the value of the setting, as an object.
HostSetting()
Base abstract class for settings.
Definition: HostSetting.cs:23
HostSetting(string Host, string Key)
Base abstract class for settings.
Definition: HostSetting.cs:32
Interface for objects that contain a reference to a host.
TypeNameSerialization
How the type name should be serialized.