private bool IsStorageValid(StorageConfiguration storage)
        {
            var valid = true;

            if (storage.Watermark <= 0 || storage.Watermark > 100)
            {
                valid = false;
                _validationErrors.Add($"Invalid watermark value configured DicomAdapter>storage>watermark: {storage.Watermark}.");
            }
            return(valid);
        }
Пример #2
0
 public DicomAdapterConfiguration()
 {
     Dicom    = new DicomConfiguration();
     Storage  = new StorageConfiguration();
     Services = new ServicesConfiguration();
 }