AlarmWorkflow.AlarmSource.Fax.FaxAlarmSource.AssertCustomOcrPathExist C# (CSharp) Méthode

AssertCustomOcrPathExist() private méthode

private AssertCustomOcrPathExist ( ) : void
Résultat void
        private void AssertCustomOcrPathExist()
        {
            if (string.IsNullOrWhiteSpace(_configuration.OCRSoftwarePath))
            {
                return;
            }

            if (Directory.Exists(_configuration.OCRSoftwarePath))
            {
                return;
            }

            throw new DirectoryNotFoundException(string.Format(Properties.Resources.OcrSoftwareNotFoundError, _ocrSoftware.GetType().Name, _configuration.OCRSoftwarePath));
        }