internal ListApplicationsPaginator(IAmazonServerlessApplicationRepository client, ListApplicationsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ServerlessApplicationRepositoryPaginatorFactory(IAmazonServerlessApplicationRepository client)
 {
     this.client = client;
 }
 private Amazon.ServerlessApplicationRepository.Model.ListApplicationDependenciesResponse CallAWSServiceOperation(IAmazonServerlessApplicationRepository client, Amazon.ServerlessApplicationRepository.Model.ListApplicationDependenciesRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Serverless Application Repository", "ListApplicationDependencies");
     try
     {
         #if DESKTOP
         return(client.ListApplicationDependencies(request));
         #elif CORECLR
         return(client.ListApplicationDependenciesAsync(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 #4
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }