internal static ConfigFile Load(string file) { ConfigFile f = Serializer.Read <ConfigFile>(file); f.ValidateManagementAgents(); if (f.DoSchemaUpdate(file)) { //#warning Save not enabled ConfigFile.Save(f, file); } return(f); }
public ConfigFile ValidateConfig(ConfigFile config) { try { logger.Trace($"Calling {nameof(this.ValidateConfig)} as {Environment.UserName}"); Global.ThrowOnSyncEngineNotRunning(); ProtectedString.EncryptOnWrite = false; config.ValidateManagementAgents(); return(config); } catch (Exception ex) { logger.Error(ex); throw; } }