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

DescribeProtectionAsync() public method

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

            return InvokeAsync<DescribeProtectionRequest,DescribeProtectionResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }