Пример #1
0
 internal ListTasksPaginator(IAmazonSnowDeviceManagement client, ListTasksRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
Пример #3
0
 private Amazon.SnowDeviceManagement.Model.DescribeExecutionResponse CallAWSServiceOperation(IAmazonSnowDeviceManagement client, Amazon.SnowDeviceManagement.Model.DescribeExecutionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Snow Device Management", "DescribeExecution");
     try
     {
         #if DESKTOP
         return(client.DescribeExecution(request));
         #elif CORECLR
         return(client.DescribeExecutionAsync(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;
     }
 }
Пример #4
0
 internal SnowDeviceManagementPaginatorFactory(IAmazonSnowDeviceManagement client)
 {
     this.client = client;
 }