private Amazon.MQ.Model.ListBrokersResponse CallAWSServiceOperation(IAmazonMQ client, Amazon.MQ.Model.ListBrokersRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon MQ", "ListBrokers");
     try
     {
         #if DESKTOP
         return(client.ListBrokers(request));
         #elif CORECLR
         return(client.ListBrokersAsync(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;
     }
 }
예제 #2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
예제 #3
0
 internal MQPaginatorFactory(IAmazonMQ client)
 {
     this.client = client;
 }
예제 #4
0
 internal ListBrokersPaginator(IAmazonMQ client, ListBrokersRequest request)
 {
     this._client  = client;
     this._request = request;
 }