예제 #1
0
        private static void Main(string[] args)
        {
            _show = (args[0] == "-show");

            Utilities.WriteLog("Приложение стартовало;");

            _millisecondsTimeout = Int32.Parse(ConfigurationManager.AppSettings["sleepMs"]);
            _serverUrl = ConfigurationManager.AppSettings["serverUrl"];
            _userName = ConfigurationManager.AppSettings["userName"];
            _emsPassword = ConfigurationManager.AppSettings["password"];
            _inputQueueName = ConfigurationManager.AppSettings["inputQueueName"];
            _outputQueueName = ConfigurationManager.AppSettings["outputQueueName"];
            _wfmUser = ConfigurationManager.AppSettings["wfmUser"];
            _wfmPassword = ConfigurationManager.AppSettings["wfmPassword"];

            csAsyncMsgConsumer msgConsumer = new csAsyncMsgConsumer(_serverUrl, _userName, _emsPassword, _inputQueueName, _outputQueueName, _wfmUser, _wfmPassword);
            MessageLogProcessor messageLogProcessor = new MessageLogProcessor(msgConsumer, _wfmUser, _wfmPassword, 1000);

            int i = 0;
            while (true)
            {
                if (_show)
                {
                    i = ShowProgress(i);
                }
                Thread.Sleep(_millisecondsTimeout*2);
                msgConsumer.Connect();
                messageLogProcessor.Start();
            }
        }
 public MessageLogProcessor(csAsyncMsgConsumer _consumer, string _wfmUser, string _wfmPassword, int _sleepMs)
 {
     consumer = _consumer;
     sleepMs = _sleepMs;
     xmlHelper = new XMLHelper();
     wfmUser = _wfmUser;
     wfmPassword = _wfmPassword;
 }
예제 #3
0
 public static void Main(String[] args)
 {
     csAsyncMsgConsumer generatedAux = new csAsyncMsgConsumer(args);
 }