Amazon.EC2.AmazonEC2Client.DeleteCustomerGatewayAsync C# (CSharp) Method

DeleteCustomerGatewayAsync() public method

Initiates the asynchronous execution of the DeleteCustomerGateway operation.
public DeleteCustomerGatewayAsync ( DeleteCustomerGatewayRequest request, System cancellationToken = default(CancellationToken) ) : Task
request DeleteCustomerGatewayRequest Container for the necessary parameters to execute the DeleteCustomerGateway operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<DeleteCustomerGatewayResponse> DeleteCustomerGatewayAsync(DeleteCustomerGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new DeleteCustomerGatewayRequestMarshaller();
            var unmarshaller = DeleteCustomerGatewayResponseUnmarshaller.Instance;

            return InvokeAsync<DeleteCustomerGatewayRequest,DeleteCustomerGatewayResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client