Exemplo n.º 1
0
        public static ConfigurationManager GetConfigurationManager(string applicationName)
        {
            if (singleton == null)
            {
                singleton = new ConfigurationManager(applicationName);
            }

            return singleton;
        }
Exemplo n.º 2
0
 public void Persist()
 {
     try
     {
         this.WriteBackConfiguration();
     }
     catch
     {
     }
     finally
     {
         singleton = null;
     }
 }