public void SaveConfiguration(MachineGroupConfiguration configuration) { string congigAsString = JsonConvert.SerializeObject(configuration); string filePath = Path.Combine(this.configurationProvider.GetConfiguration().ConfigurationFolder, "configuration.json"); TextWriter tw = new StreamWriter(filePath, false); tw.WriteLine(congigAsString); tw.Close(); }
public void SaveConfig(MachineGroupConfiguration configuration) { if (configuration == null) { return; } this.configurationRepository.SaveConfiguration(configuration); }
public void Put(MachineGroupConfiguration configuration) { this.configurationRepository.SaveConfiguration(configuration); }