private Amazon.KafkaConnect.Model.ListWorkerConfigurationsResponse CallAWSServiceOperation(IAmazonKafkaConnect client, Amazon.KafkaConnect.Model.ListWorkerConfigurationsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Managed Streaming for Kafka Connect", "ListWorkerConfigurations");
     try
     {
         #if DESKTOP
         return(client.ListWorkerConfigurations(request));
         #elif CORECLR
         return(client.ListWorkerConfigurationsAsync(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;
     }
 }
Beispiel #2
0
 internal KafkaConnectPaginatorFactory(IAmazonKafkaConnect client)
 {
     this.client = client;
 }
Beispiel #3
0
 internal ListWorkerConfigurationsPaginator(IAmazonKafkaConnect client, ListWorkerConfigurationsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #4
0
 internal ListConnectorsPaginator(IAmazonKafkaConnect client, ListConnectorsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }