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++; } }
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++; } }
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++; } }