/// <summary> /// Default Empty Constructor /// </summary> public Configuration() { instanceId = Guid.NewGuid().ToString(); configState.State = ENodeState.Loading; Settings = new ConfigurationSettings(); SyncMode = ESyncMode.MANUAL; }
/// <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; }