Amazon.ServerMigrationService.AmazonServerMigrationServiceClient.GetServersAsync C# (CSharp) Method

GetServersAsync() public method

Initiates the asynchronous execution of the GetServers operation.
public GetServersAsync ( GetServersRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.ServerMigrationService.Model.GetServersRequest Container for the necessary parameters to execute the GetServers operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<GetServersResponse> GetServersAsync(GetServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetServersRequestMarshaller();
            var unmarshaller = GetServersResponseUnmarshaller.Instance;

            return InvokeAsync<GetServersRequest,GetServersResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }