Google API Client Library for .NET  1.10.0
Public Member Functions | List of all members
Google.Apis.Requests.IClientServiceRequest< TResponse > Interface Template Reference

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. More...

Inheritance diagram for Google.Apis.Requests.IClientServiceRequest< TResponse >:
Google.Apis.Requests.IClientServiceRequest Google.Apis.Requests.ClientServiceRequest< TResponse >

Public Member Functions

Task< TResponse > ExecuteAsync ()
 Executes the request asynchronously and returns the result object. More...
 
Task< TResponse > ExecuteAsync (CancellationToken cancellationToken)
 Executes the request asynchronously and returns the result object. More...
 
TResponse Execute ()
 Executes the request and returns the result object. More...
 
- Public Member Functions inherited from Google.Apis.Requests.IClientServiceRequest
HttpRequestMessage CreateRequest (Nullable< bool > overrideGZipEnabled=null)
 Creates a HTTP request message with all path and query parameters, ETag, etc. More...
 
Task< Stream > ExecuteAsStreamAsync ()
 Executes the request asynchronously and returns the result stream. More...
 
Task< Stream > ExecuteAsStreamAsync (CancellationToken cancellationToken)
 Executes the request asynchronously and returns the result stream. More...
 
Stream ExecuteAsStream ()
 Executes the request and returns the result stream. More...
 

Additional Inherited Members

- Properties inherited from Google.Apis.Requests.IClientServiceRequest
string MethodName [get]
 Gets the name of the method to which this request belongs. More...
 
string RestPath [get]
 Gets the rest path of this request. More...
 
string HttpMethod [get]
 Gets the HTTP method of this request. More...
 
IDictionary< string, IParameterRequestParameters [get]
 Gets the parameters information for this specific request. More...
 
IClientService Service [get]
 Gets the service which is related to this request. More...
 

Detailed Description

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.

Member Function Documentation

TResponse Google.Apis.Requests.IClientServiceRequest< TResponse >.Execute ( )

Executes the request and returns the result object.

Implemented in Google.Apis.Requests.ClientServiceRequest< TResponse >.

Task<TResponse> Google.Apis.Requests.IClientServiceRequest< TResponse >.ExecuteAsync ( )

Executes the request asynchronously and returns the result object.

Implemented in Google.Apis.Requests.ClientServiceRequest< TResponse >.

Task<TResponse> Google.Apis.Requests.IClientServiceRequest< TResponse >.ExecuteAsync ( CancellationToken  cancellationToken)

Executes the request asynchronously and returns the result object.

Parameters
cancellationTokenA cancellation token to cancel operation.

Implemented in Google.Apis.Requests.ClientServiceRequest< TResponse >.


The documentation for this interface was generated from the following file: