Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListTopicsAsync C# (CSharp) Метод

ListTopicsAsync() публичный Метод

Initiates the asynchronous execution of the ListTopics operation.
public ListTopicsAsync ( ListTopicsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request ListTopicsRequest Container for the necessary parameters to execute the ListTopics operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<ListTopicsResponse> ListTopicsAsync(ListTopicsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ListTopicsRequestMarshaller();
            var unmarshaller = ListTopicsResponseUnmarshaller.Instance;

            return InvokeAsync<ListTopicsRequest,ListTopicsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonSimpleNotificationServiceClient::ListTopicsAsync ( System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( string nextToken, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( ListTopicsRequest request, ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( string nextToken, ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void

Usage Example

Пример #1
0
 public Topic CheckSnsTopic(string topicName)
 {
     using (var client = new AmazonSimpleNotificationServiceClient(_credentials))
     {
         return client.ListTopicsAsync().Result.Topics.SingleOrDefault(topic => topic.TopicArn == topicName);
     }
 }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::ListTopicsAsync
AmazonSimpleNotificationServiceClient