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

CreateCustomerGatewayAsync() public method

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

            return InvokeAsync<CreateCustomerGatewayRequest,CreateCustomerGatewayResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client