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

AllocateHostsAsync() public method

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

            return InvokeAsync<AllocateHostsRequest,AllocateHostsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client