internal GetReplicationRunsPaginator(IAmazonServerMigrationService client, GetReplicationRunsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 private Amazon.ServerMigrationService.Model.ImportAppCatalogResponse CallAWSServiceOperation(IAmazonServerMigrationService client, Amazon.ServerMigrationService.Model.ImportAppCatalogRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Server Migration Service", "ImportAppCatalog");
     try
     {
         #if DESKTOP
         return(client.ImportAppCatalog(request));
         #elif CORECLR
         return(client.ImportAppCatalogAsync(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;
     }
 }
Esempio n. 3
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
 internal GetConnectorsPaginator(IAmazonServerMigrationService client, GetConnectorsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ServerMigrationServicePaginatorFactory(IAmazonServerMigrationService client)
 {
     this.client = client;
 }