protected void MonitorHandle(Watcher watcher) { try { ConsumerTimeWorker worker = new ConsumerTimeWorker(Handle); worker.BeginInvoke(watcher, AfterHandle, watcher); } catch { } }
private void FswHandler(object sender, FileSystemEventArgs e) { try { Watcher watcher = _util.GetWatcherByFileName(e.FullPath); watcher.CurrentFile = e.FullPath; ConsumerTimeWorker worker = new ConsumerTimeWorker(ParseReport); worker.BeginInvoke(watcher, AfterParse, watcher); } catch { } }