Example #1
0
 public static void RegisterConfigs()
 {
     Config = (RawSharerSection)WebConfigurationManager.GetSection("rawsharer");
     if (Config == null)
     {
         Initialize();
     }
 }
Example #2
0
        private static void Initialize()
        {
            Config = new RawSharerSection(true);
            var writableConfig = WebConfigurationManager.OpenWebConfiguration("~");

            writableConfig.Sections.Add("rawsharer", Config);
            writableConfig.Save();
        }