Exemple #1
0
 /// <summary>
 /// Default Empty Constructor
 /// </summary>
 public Configuration()
 {
     instanceId        = Guid.NewGuid().ToString();
     configState.State = ENodeState.Loading;
     Settings          = new ConfigurationSettings();
     SyncMode          = ESyncMode.MANUAL;
 }
Exemple #2
0
 /// <summary>
 /// Constructor with defined configuration settings.
 /// </summary>
 /// <param name="settings">Configuration Settings</param>
 public Configuration(ConfigurationSettings settings)
 {
     instanceId        = Guid.NewGuid().ToString();
     configState.State = ENodeState.Loading;
     if (settings == null)
     {
         Settings = new ConfigurationSettings();
     }
     else
     {
         Settings = settings;
     }
     SyncMode = ESyncMode.MANUAL;
 }