Пример #1
0
        public static CmdReader GetReader(string[] args = null)
        {
            if (instance == null && args != null)
            {
                instance = new CmdReader(args);
            }

            return(instance);
        }
Пример #2
0
        public ConfigLoader(string[] args)
        {
            try
            {
                CmdReader.GetReader(args);
                configParser = new ConfigParser();
            }
#if DEBUG
            catch (Exception e)
#else
            catch (Exception)
#endif
            {
#if DEBUG
                Logger.GetLogger().Error("Configuration error - " + e);
#endif
            }
            finally
            {
            }
        }