Show / Hide Table of Contents

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
IClientServiceRequest.MethodName
IClientServiceRequest.RestPath
IClientServiceRequest.HttpMethod
IClientServiceRequest.RequestParameters
IClientServiceRequest.Service
IClientServiceRequest.CreateRequest(Nullable<Boolean>)
IClientServiceRequest.ExecuteAsStreamAsync()
IClientServiceRequest.ExecuteAsStreamAsync(CancellationToken)
IClientServiceRequest.ExecuteAsStream()
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>
Back to top