コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }