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

AllocateAddressAsync() public method

Initiates the asynchronous execution of the AllocateAddress operation.
public AllocateAddressAsync ( AllocateAddressRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.EC2.Model.AllocateAddressRequest Container for the necessary parameters to execute the AllocateAddress operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<AllocateAddressResponse> AllocateAddressAsync(AllocateAddressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new AllocateAddressRequestMarshaller();
            var unmarshaller = AllocateAddressResponseUnmarshaller.Instance;

            return InvokeAsync<AllocateAddressRequest,AllocateAddressResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonEC2Client::AllocateAddressAsync ( System cancellationToken = default(CancellationToken) ) : Task
AmazonEC2Client