Exemple #1
0
        public static CmdReader GetReader(string[] args = null)
        {
            if (instance == null && args != null)
            {
                instance = new CmdReader(args);
            }

            return(instance);
        }
Exemple #2
0
        public ConfigLoader(string[] args)
        {
            try
            {
                CmdReader.GetReader(args);
                configParser = ConfigParser.GetConfig();
                configParser.Init();
            }
#if DEBUG
            catch (Exception e)
#else
            catch (Exception)
#endif
            {
#if DEBUG
                Logger.GetLogger().Error("Configuration error - " + e);
#endif
            }
        }