Exemplo n.º 1
0
        public void Load(IServiceCollection services)
        {
            EnsureArg.IsNotNull(services, nameof(services));

            DicomCastWorkerConfiguration dicomCastWorkerConfiguration = services.Configure <DicomCastWorkerConfiguration>(
                _configuration,
                DicomCastWorkerConfigurationSectionName);

            DicomCastConfiguration dicomValidationConfiguration = services.Configure <DicomCastConfiguration>(
                _configuration,
                DicomValidationConfigurationSectionName);

            RetryConfiguration retryConfiguration = services.Configure <RetryConfiguration>(
                _configuration,
                RetryConfigurationSectionName);

            services.Add <DicomCastWorker>()
            .Singleton()
            .AsSelf()
            .AsImplementedInterfaces();

            RegisterPipeline(services);

            services.Add <ChangeFeedProcessor>()
            .Singleton()
            .AsSelf()
            .AsImplementedInterfaces();

            services.Decorate <IChangeFeedProcessor, LoggingChangeFeedProcessor>();

            services.Add <SyncStateService>()
            .Singleton()
            .AsSelf()
            .AsImplementedInterfaces();
        }
 public ObservationPipelineStep(IObservationDeleteHandler observationDeleteHandler,
                                IObservationUpsertHandler observationUpsertHandler,
                                IOptions <DicomCastConfiguration> dicomCastConfiguration)
 {
     _observationDeleteHandler = EnsureArg.IsNotNull(observationDeleteHandler, nameof(observationDeleteHandler));
     _observationUpsertHandler = EnsureArg.IsNotNull(observationUpsertHandler, nameof(observationUpsertHandler));
     _dicomCastConfiguration   = EnsureArg.IsNotNull(dicomCastConfiguration?.Value, nameof(dicomCastConfiguration));
 }
Exemplo n.º 3
0
        public PatientSynchronizer(
            IEnumerable <IPatientPropertySynchronizer> patientPropertySynchronizers,
            IOptions <DicomCastConfiguration> dicomCastConfiguration,
            IExceptionStore exceptionStore)
        {
            EnsureArg.IsNotNull(patientPropertySynchronizers, nameof(patientPropertySynchronizers));
            EnsureArg.IsNotNull(dicomCastConfiguration, nameof(dicomCastConfiguration));
            EnsureArg.IsNotNull(exceptionStore, nameof(exceptionStore));

            _patientPropertySynchronizers = patientPropertySynchronizers;
            _dicomCastconfiguration       = dicomCastConfiguration.Value;
            _exceptionStore = exceptionStore;
        }