Esempio n. 1
0
        public void DeviceFarmGetJob()
        {
            #region getjob-example-1470928294268

            var response = client.GetJob(new GetJobRequest
            {
                Arn = "arn:aws:devicefarm:us-west-2::job:123-456-EXAMPLE-GUID" // You can get the job ARN by using the list-jobs CLI command.
            });

            Job job = response.Job;

            #endregion
        }
Esempio n. 2
0
 private Amazon.DeviceFarm.Model.GetJobResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.GetJobRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "GetJob");
     try
     {
         #if DESKTOP
         return(client.GetJob(request));
         #elif CORECLR
         return(client.GetJobAsync(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;
     }
 }