Amazon.Shield.AmazonShieldClient.ListProtectionsAsync C# (CSharp) Method

ListProtectionsAsync() public method

Initiates the asynchronous execution of the ListProtections operation.
public ListProtectionsAsync ( ListProtectionsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Shield.Model.ListProtectionsRequest Container for the necessary parameters to execute the ListProtections operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<ListProtectionsResponse> ListProtectionsAsync(ListProtectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ListProtectionsRequestMarshaller();
            var unmarshaller = ListProtectionsResponseUnmarshaller.Instance;

            return InvokeAsync<ListProtectionsRequest,ListProtectionsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }