DescribeApplicationsAsync() public method

Initiates the asynchronous execution of the DescribeApplications operation.
public DescribeApplicationsAsync ( DescribeApplicationsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.ElasticBeanstalk.Model.DescribeApplicationsRequest Container for the necessary parameters to execute the DescribeApplications operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
コード例 #1
0
 private async Task<bool> IsNewApplicationAsync(AmazonElasticBeanstalkClient client)
 {
     var describeApplicationsResponse = await client.DescribeApplicationsAsync();
     return describeApplicationsResponse.Applications.All(
         description => description.ApplicationName != configurationProvider.LongApplicationName);
 }