Interface IClientServiceRequest<TResponse>
A 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.
Inherited Members
Namespace: Google.Apis.Requests
Assembly: Google.Apis.dll
Syntax
public interface IClientServiceRequest<TResponse> : IClientServiceRequest
Type Parameters
Name | Description |
---|---|
TResponse |
Methods
Execute()
Executes the request and returns the result object.
Declaration
TResponse Execute()
Returns
Type | Description |
---|---|
TResponse |
ExecuteAsync()
Executes the request asynchronously and returns the result object.
Declaration
Task<TResponse> ExecuteAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> |
ExecuteAsync(CancellationToken)
Executes the request asynchronously and returns the result object.
Declaration
Task<TResponse> ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | A cancellation token to cancel operation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> |