Пример #1
0
        protected void MonitorHandle(Watcher watcher)
        {
            try
            {
                ConsumerTimeWorker worker = new ConsumerTimeWorker(Handle);
                worker.BeginInvoke(watcher, AfterHandle, watcher);
            }
            catch
            {

            }
        }
Пример #2
0
        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
            {

            }
        }