Esempio n. 1
0
 public static void Refresh()
 {
     if (m_Constants != null)
     {
         logger.Debug("Begin refresh constants");
         m_Constants = null;
         Constants.AllConstants();
         logger.Debug("End refresh constants");
     }
 }
Esempio n. 2
0
 public static Constants AllConstants()
 {
     if (m_Constants == null)
     {
         try
         {
             logger.Debug("Begin initing constants");
             m_Constants = new Constants();
         }
         catch (Exception ex)
         {
             logger.Error(ex.Message);
             System.Environment.Exit(1);
         }
     }
     return m_Constants;
 }