예제 #1
0
        public FhirService(IFhirClient fhirClient, IFhirResourceValidator fhirResourceValidator)
        {
            EnsureArg.IsNotNull(fhirClient, nameof(fhirClient));
            EnsureArg.IsNotNull(fhirResourceValidator, nameof(fhirResourceValidator));

            _fhirClient            = fhirClient;
            _fhirResourceValidator = fhirResourceValidator;
        }
예제 #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;
        }