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

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