private Amazon.ComprehendMedical.Model.StartRxNormInferenceJobResponse CallAWSServiceOperation(IAmazonComprehendMedical client, Amazon.ComprehendMedical.Model.StartRxNormInferenceJobRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Comprehend Medical", "StartRxNormInferenceJob");
     try
     {
         #if DESKTOP
         return(client.StartRxNormInferenceJob(request));
         #elif CORECLR
         return(client.StartRxNormInferenceJobAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
コード例 #3
0
 public ComprehendService(IAmazonComprehendMedical comprehend)
 {
     this.comprehendMedical = comprehend;
 }
コード例 #4
0
        public ComprehendMedicalService(RootConfiguration rootConfig)
        {
            var awsConfig = rootConfig.AWSConfiguration;

            comprehendMedicalClient = new AmazonComprehendMedicalClient(awsConfig.AccessKeyId, awsConfig.AccessSecretKey, RegionEndpoint.USEast2);
        }