public interface IClientServiceRequest<TResponse> : IClientServiceRequestA client service request which inherits from IClientServiceRequest and represents a specific service request with the given response type. It supports both sync and async execution to get the response.
Namespace
Google.Apis.RequestsAssembly
Google.Apis.dll
Type Parameter | 
      |
|---|---|
| Name | Description | 
TResponse | 
        |
Methods
Execute()
TResponse Execute()Executes the request and returns the result object.
| Returns | |
|---|---|
| Type | Description | 
TResponse | 
        |
ExecuteAsync()
Task<TResponse> ExecuteAsync()Executes the request asynchronously and returns the result object.
| Returns | |
|---|---|
| Type | Description | 
Task<TResponse> | 
        |
ExecuteAsync(CancellationToken)
Task<TResponse> ExecuteAsync(CancellationToken cancellationToken)Executes the request asynchronously and returns the result object.
| Parameter | |
|---|---|
| Name | Description | 
cancellationToken | 
        CancellationTokenA cancellation token to cancel operation.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<TResponse> | 
        |