Interface IClientServiceRequest<TResponse> (1.60.0)

public interface IClientServiceRequest<TResponse> : IClientServiceRequest

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.

Namespace

GoogleApisRequests

Assembly

Google.Apis.dll

Type Parameter

NameDescription
TResponse

Methods

Execute()

TResponse Execute()

Executes the request and returns the result object.

Returns
TypeDescription
TResponse

ExecuteAsync()

Task<TResponse> ExecuteAsync()

Executes the request asynchronously and returns the result object.

Returns
TypeDescription
Task

ExecuteAsync(CancellationToken)

Task<TResponse> ExecuteAsync(CancellationToken cancellationToken)

Executes the request asynchronously and returns the result object.

Parameter
NameDescription
cancellationTokenCancellationToken

A cancellation token to cancel operation.

Returns
TypeDescription
Task

Extension Method