Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
MongoDBSettings.cs
1
using
Waher.Content
;
2
using
Waher.Persistence.Attributes
;
3
4
namespace
Waher.IoTGateway.Setup.Databases
5
{
9
public
class
MongoDBSettings
:
DatabaseSettings
,
IHostReference
10
{
11
private
string
host =
string
.Empty;
12
private
string
database =
"IoTGateway"
;
13
private
string
defaultCollection =
"Default"
;
14
private
string
userName =
string
.Empty;
15
private
string
password =
string
.Empty;
16
private
int
? port =
null
;
17
21
public
MongoDBSettings
()
22
{
23
}
24
28
[DefaultValueStringEmpty]
29
public
string
Host
30
{
31
get
=> this.host;
32
set
=> this.host = value;
33
}
34
38
[DefaultValueNull]
39
public
int
?
Port
40
{
41
get
=> this.port;
42
set
=> this.port = value;
43
}
44
48
[DefaultValue(
"IoTGateway"
)]
49
public
string
Database
50
{
51
get
=> this.database;
52
set
=> this.database = value;
53
}
54
58
[DefaultValue(
"Default"
)]
59
public
string
DefaultCollection
60
{
61
get
=> this.defaultCollection;
62
set
=> this.defaultCollection = value;
63
}
64
68
[DefaultValueStringEmpty]
69
public
string
UserName
70
{
71
get
=> this.userName;
72
set
=> this.userName = value;
73
}
74
78
[DefaultValueStringEmpty]
79
public
string
Password
80
{
81
get
=> this.password;
82
set
=> this.password = value;
83
}
84
}
85
}
Waher.IoTGateway.Setup.Databases.DatabaseSettings
Interface for Database settings
Definition:
DatabaseSettings.cs:14
Waher.IoTGateway.Setup.Databases.MongoDBSettings
MongoDB Settings.
Definition:
MongoDBSettings.cs:10
Waher.IoTGateway.Setup.Databases.MongoDBSettings.Host
string Host
Name of database host, or empty if running on local machine.
Definition:
MongoDBSettings.cs:30
Waher.IoTGateway.Setup.Databases.MongoDBSettings.UserName
string UserName
User Name
Definition:
MongoDBSettings.cs:70
Waher.IoTGateway.Setup.Databases.MongoDBSettings.DefaultCollection
string DefaultCollection
Default collection
Definition:
MongoDBSettings.cs:60
Waher.IoTGateway.Setup.Databases.MongoDBSettings.MongoDBSettings
MongoDBSettings()
MongoDB Settings.
Definition:
MongoDBSettings.cs:21
Waher.IoTGateway.Setup.Databases.MongoDBSettings.Password
string Password
User Name
Definition:
MongoDBSettings.cs:80
Waher.IoTGateway.Setup.Databases.MongoDBSettings.Port
int? Port
Port number, or null if standard MongoDB service port.
Definition:
MongoDBSettings.cs:40
Waher.Persistence.Database
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Definition:
Database.cs:19
Waher.Content.IHostReference
Interface for objects that contain a reference to a host.
Definition:
IHostReference.cs:7
Waher.Content
Definition:
Array.cs:6
Waher.IoTGateway.Setup.Databases
Definition:
DatabaseSettings.cs:8
Waher.Persistence.Attributes
Definition:
ArchivingTimeAttribute.cs:4
IoTGateway
Waher.IoTGateway
Setup
Databases
MongoDBSettings.cs
Generated by
1.9.5