Beispiel #1
0
        private static void initializeConfiguration(string configFile)
        {
            var builder = new ConfigBuilder(configFile, new FSProxy());

            if (builder.IsConfigured())
            {
                Logger.WriteInfo(string.Format("Loading configuration from {0}", configFile));
                return;
            }
            builder.BuildConfiguration();
            Logger.WriteInfo(string.Format("Creating configuration in {0}", configFile));
            File.WriteAllText(configFile, builder.ToString());
        }
Beispiel #2
0
 private static void initializeConfiguration(string configFile)
 {
     var builder = new ConfigBuilder(configFile, new FSProxy());
     if (builder.IsConfigured())
     {
         Logger.WriteInfo(string.Format("Loading configuration from {0}", configFile));
         return;
     }
     builder.BuildConfiguration();
     Logger.WriteInfo(string.Format("Creating configuration in {0}", configFile));
     File.WriteAllText(configFile, builder.ToString());
 }