Esempio n. 1
0
        public FhirService(IFhirClient fhirClient, IFhirResourceValidator fhirResourceValidator)
        {
            EnsureArg.IsNotNull(fhirClient, nameof(fhirClient));
            EnsureArg.IsNotNull(fhirResourceValidator, nameof(fhirResourceValidator));

            _fhirClient            = fhirClient;
            _fhirResourceValidator = fhirResourceValidator;
        }
Esempio n. 2
0
        public FhirService(
            IFhirClient fhirClient,
            IFhirResourceValidator fhirResourceValidator,
            IOptions <FhirConfiguration> fhirConfiguration)
        {
            EnsureArg.IsNotNull(fhirClient, nameof(fhirClient));
            EnsureArg.IsNotNull(fhirResourceValidator, nameof(fhirResourceValidator));
            EnsureArg.IsNotNull(fhirConfiguration, nameof(fhirConfiguration));

            _fhirClient            = fhirClient;
            _fhirResourceValidator = fhirResourceValidator;
            _fhirConfiguration     = fhirConfiguration.Value;
        }