Exemple #1
0
        void BackgroundWorkerDCCLoader_DoWork(object sender, DoWorkEventArgs e)
        {
            WorkerBase workerBaseDCCLoader = null;

            try
            {
                BackgroundWorker backgroundWorker = (BackgroundWorker)sender;
                workerBaseDCCLoader = new DCCLoaderProcessing(backgroundWorker, e, ConfigurationManager.AppSettings["DCCLoaderLogSourceDirectory"]);
                workerBaseDCCLoader.DoWork();
            }
            catch (Exception ex)
            {
                m_logging.Write(string.Format("{0} failed at {1}.", workerBaseDCCLoader.GetType(), ex));
                totalFail++;
            }
        }
Exemple #2
0
        void BackgroundWorkerArchiver_DoWork(object sender, DoWorkEventArgs e)
        {
            WorkerBase workerBaseArchiver = null;

            try
            {
                BackgroundWorker backgroundWorker = (BackgroundWorker)sender;
                workerBaseArchiver = new Archiver(backgroundWorker, e);
                workerBaseArchiver.DoWork();
            }
            catch (Exception ex)
            {
                m_logging.Write(string.Format("{0} failed at {1}.", workerBaseArchiver.GetType(), ex));
                totalFail++;
            }
        }
Exemple #3
0
        void BackgroundWorkerEBS_DoWork(object sender, DoWorkEventArgs e)
        {
            WorkerBase workerBaseEBS = null;

            try
            {
                m_logging.Write(string.Format("EBSLoaderLogFileSource: {0}", ConfigurationManager.AppSettings["EBSLoaderLogFileSource"]));

                BackgroundWorker backgroundWorker = (BackgroundWorker)sender;
                workerBaseEBS = new EBSLoaderProcessing(backgroundWorker, e, ConfigurationManager.AppSettings["EBSLoaderLogFileSource"]);
                workerBaseEBS.DoWork();
            }
            catch (Exception ex)
            {
                m_logging.Write(string.Format("{0} failed at {1}.", workerBaseEBS.GetType(), ex));
                totalFail++;
            }
        }