예제 #1
0
        /*!
         * Checks application configuration and writes
         * default configuration if none exists.
         */
        public void CheckConfiguration()
        {
            if (File.Exists(ApplicationUtils.APP_CONFIG_PATH))
            {
                return;
            }

            configurationWriter.Write();
        }
예제 #2
0
    public void Save(XmlWriter xmlWriter, string sectionName)
    {
        Assert.IsNotNull(xmlWriter);
        Assert.IsNotNull(sectionName);

        xmlWriter.WriteStartElement(sectionName);
        ConfigurationWriter.Write(xmlWriter, RootNode.Attributes);

        foreach (var childNode in RootNode.ChildNodes)
        {
            ConfigurationWriter.WriteNode(xmlWriter, childNode);
        }

        xmlWriter.WriteEndElement();
    }
 public void UpdateConfiguration(Model.Configuration configuration)
 {
     _configuration = configuration;
     _configurationWriter.Write(configuration);
 }
 private void writeProfileDotConfigFile()
 {
     new FileSystem().CleanDirectory(_deployedFolderProfilePath);
     var writer = new ConfigurationWriter();
     writer.Write(Path.Combine(_deployedFolderProfilePath, "Profile.config"), _theProfile);
 }