private void SetDefault() { boilerReportQueue = new BoilerReportQueue(); //historyReportQueue = new BoilerReportQueue(); historyOriginalQueue = new HistoryReportQueue(); //var folderToWatchFor = string.Format("{0}\\input", System.Environment.CurrentDirectory); //var outputFolder = string.Format("{0}\\output", System.Environment.CurrentDirectory); //MonitorFolder = new MonitorFolder(folderToWatchFor, outputFolder); }
public FileInputMonitor() { boilerReportQueue = Program.SysConfig.BoilerReportQueue; //historyReportQueue = Program.SysConfig.HistoryReportQueue; renameThread = new Thread(new ThreadStart(Rename)); historyThread = new Thread(new ThreadStart(HistoryRename)); fileSystemWatcher = new FileSystemWatcher(Program.SysConfig.MonitorFolder.FolderToWatchFor); fileSystemWatcher.EnableRaisingEvents = true; fileSystemWatcher.Created += FileCreated; }