AlarmWorkflow.AlarmSource.Fax.FaxAlarmSource.AssertCustomOcrPathExist C# (CSharp) Метод

AssertCustomOcrPathExist() приватный Метод

private AssertCustomOcrPathExist ( ) : void
Результат 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));
        }