Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HostSetting.cs
1
using
Waher.Content
;
2
using
Waher.Persistence.Attributes
;
3
4
namespace
Waher.Runtime.Settings.HostSettingObjects
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
}
Waher.Runtime.Settings.HostSettingObjects.HostSetting
Base abstract class for host settings.
Definition:
HostSetting.cs:15
Waher.Runtime.Settings.HostSettingObjects.HostSetting.GetValueObject
abstract object GetValueObject()
Gets the value of the setting, as an object.
Waher.Runtime.Settings.HostSettingObjects.HostSetting.Key
string Key
Key name.
Definition:
HostSetting.cs:61
Waher.Runtime.Settings.HostSettingObjects.HostSetting.ObjectId
string ObjectId
Object ID
Definition:
HostSetting.cs:43
Waher.Runtime.Settings.HostSettingObjects.HostSetting.HostSetting
HostSetting()
Base abstract class for settings.
Definition:
HostSetting.cs:23
Waher.Runtime.Settings.HostSettingObjects.HostSetting.HostSetting
HostSetting(string Host, string Key)
Base abstract class for settings.
Definition:
HostSetting.cs:32
Waher.Runtime.Settings.HostSettingObjects.HostSetting.Host
string Host
Host name.
Definition:
HostSetting.cs:52
Waher.Content.IHostReference
Interface for objects that contain a reference to a host.
Definition:
IHostReference.cs:7
Waher.Content
Definition:
Array.cs:6
Waher.Persistence.Attributes
Definition:
ArchivingTimeAttribute.cs:4
Waher.Persistence.Attributes.TypeNameSerialization
TypeNameSerialization
How the type name should be serialized.
Definition:
TypeNameAttribute.cs:9
Waher.Runtime.Settings.HostSettingObjects
Definition:
BooleanHostSetting.cs:2
IoTGateway
Runtime
Waher.Runtime.Settings
HostSettingObjects
HostSetting.cs
Generated by
1.9.5