public void Start() { if (_state == ServiceState.Started) { return; } CheckDirectoriesForNewData(); ImageWatcherHelper.CreateImageWatcher(out _imageWatcher, ImageExtensions.ToList(), MonitoringPaths, NewPageTimeOut, _imageWatcher_EndOfFileEventDetected); _state = ServiceState.Started; }
public void Create(out IImageWatcher watcher, EndOfFileEventHandler endOfFileEventHandler) { ImageWatcherHelper.CreateImageWatcher(out watcher, endOfFileEventHandler); }