示例#1
0
        public void Start()
        {
            if (_state == ServiceState.Started)
            {
                return;
            }

            CheckDirectoriesForNewData();
            ImageWatcherHelper.CreateImageWatcher(out _imageWatcher, ImageExtensions.ToList(), MonitoringPaths, NewPageTimeOut, _imageWatcher_EndOfFileEventDetected);
            _state = ServiceState.Started;
        }
示例#2
0
 public void Create(out IImageWatcher watcher, EndOfFileEventHandler endOfFileEventHandler)
 {
     ImageWatcherHelper.CreateImageWatcher(out watcher, endOfFileEventHandler);
 }