Amazon.OpsWorksCM.AmazonOpsWorksCMClient.CreateServerAsync C# (CSharp) Method

CreateServerAsync() public method

Initiates the asynchronous execution of the CreateServer operation.
public CreateServerAsync ( CreateServerRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.OpsWorksCM.Model.CreateServerRequest Container for the necessary parameters to execute the CreateServer operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CreateServerResponse> CreateServerAsync(CreateServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateServerRequestMarshaller();
            var unmarshaller = CreateServerResponseUnmarshaller.Instance;

            return InvokeAsync<CreateServerRequest,CreateServerResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }