Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
MongoDBSettings.cs
1using Waher.Content;
3
5{
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
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}
string Host
Name of database host, or empty if running on local machine.
int? Port
Port number, or null if standard MongoDB service port.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Definition: Database.cs:19
Interface for objects that contain a reference to a host.