public LicensePlateUploadMonitor(string pathToMonitor, ILicensePlateEventPublisher plateEventPublisher) { if (pathToMonitor == null) throw new ArgumentNullException("pathToMonitor"); if (!System.IO.Directory.Exists(pathToMonitor)) throw new System.IO.DirectoryNotFoundException(pathToMonitor + " not found"); _plateEventPublisher = plateEventPublisher; Configuration = new LicenseParsingConfig(); _pathToMonitor = pathToMonitor; }
public LicensePlateUploadMonitor(string pathToMonitor, ILicensePlateEventPublisher plateEventPublisher) { if (pathToMonitor == null) { throw new ArgumentNullException("pathToMonitor"); } if (!System.IO.Directory.Exists(pathToMonitor)) { throw new System.IO.DirectoryNotFoundException(pathToMonitor + " not found"); } _plateEventPublisher = plateEventPublisher; Configuration = new LicenseParsingConfig(); _pathToMonitor = pathToMonitor; }