Exemple #1
0
 private Amazon.MigrationHubConfig.Model.DescribeHomeRegionControlsResponse CallAWSServiceOperation(IAmazonMigrationHubConfig client, Amazon.MigrationHubConfig.Model.DescribeHomeRegionControlsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Migration Hub Config", "DescribeHomeRegionControls");
     try
     {
         #if DESKTOP
         return(client.DescribeHomeRegionControls(request));
         #elif CORECLR
         return(client.DescribeHomeRegionControlsAsync(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;
     }
 }
Exemple #2
0
 internal MigrationHubConfigPaginatorFactory(IAmazonMigrationHubConfig client)
 {
     this.client = client;
 }
 internal DescribeHomeRegionControlsPaginator(IAmazonMigrationHubConfig client, DescribeHomeRegionControlsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }