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;
        }
Exemplo n.º 2
0
        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;
        }