Example #1
0
        public UploadDefinitionsOperation(UploadDefinitionOperationOptions arguments, ILoggerFactory loggerFactory)
        {
            _arguments     = arguments;
            _loggerFactory = loggerFactory;

            _logger = loggerFactory.CreateLogger <UploadDefinitionsOperation>();

            arguments.FhirBaseUrl.Uri ??= arguments.Environment?.FhirBaseUrl;
            arguments.ProxyBaseUrl.Uri ??= arguments.Environment?.ProxyBaseUrl;

            Validate(arguments);
        }
Example #2
0
 private void Validate(UploadDefinitionOperationOptions arguments)
 {
     arguments.Environment?.Validate(nameof(arguments.Environment));
 }