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

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

ExecuteAsync(CancellationToken)

Task<TResponse> ExecuteAsync(CancellationToken cancellationToken)

Executes the request asynchronously and returns the result object.

Parameter
Name Description
cancellationToken CancellationToken

A cancellation token to cancel operation.

Returns
Type Description
Task

Extension Method