コード例 #1
0
        public ExportServiceBase(
            ILogger logger,
            IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration,
            IServiceScopeFactory serviceScopeFactory,
            IStorageInfoProvider storageInfoProvider)
        {
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
            _serviceScopeFactory = serviceScopeFactory ?? throw new ArgumentNullException(nameof(serviceScopeFactory));

            if (dicomAdapterConfiguration is null)
            {
                throw new ArgumentNullException(nameof(dicomAdapterConfiguration));
            }

            _storageInfoProvider     = storageInfoProvider ?? throw new ArgumentNullException(nameof(storageInfoProvider));
            _dataExportConfiguration = dicomAdapterConfiguration.Value.Dicom.Scu.ExportSettings;
        }
コード例 #2
0
        public DicomWebExportService(
            ILoggerFactory loggerFactory,
            IHttpClientFactory httpClientFactory,
            IServiceScopeFactory serviceScopeFactory,
            ILogger <DicomWebExportService> logger,
            IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration,
            IStorageInfoProvider storageInfoProvider)
            : base(logger, dicomAdapterConfiguration, serviceScopeFactory, storageInfoProvider)
        {
            _loggerFactory       = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
            _httpClientFactory   = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
            _serviceScopeFactory = serviceScopeFactory ?? throw new ArgumentNullException(nameof(serviceScopeFactory));
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));

            if (dicomAdapterConfiguration is null)
            {
                throw new ArgumentNullException(nameof(dicomAdapterConfiguration));
            }

            _dataExportConfiguration = dicomAdapterConfiguration.Value.Dicom.Scu.ExportSettings;

            Agent        = _dataExportConfiguration.Agent;
            Concurrentcy = dicomAdapterConfiguration.Value.Dicom.Scu.MaximumNumberOfAssociations;
        }