Amazon.APIGateway.AmazonAPIGatewayClient.GetRestApiAsync C# (CSharp) Method

GetRestApiAsync() public method

Initiates the asynchronous execution of the GetRestApi operation.
public GetRestApiAsync ( Amazon.APIGateway.Model.GetRestApiRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.APIGateway.Model.GetRestApiRequest Container for the necessary parameters to execute the GetRestApi operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<GetRestApiResponse> GetRestApiAsync(GetRestApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetRestApiRequestMarshaller();
            var unmarshaller = GetRestApiResponseUnmarshaller.Instance;

            return InvokeAsync<GetRestApiRequest,GetRestApiResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonAPIGatewayClient