Interface IClientServiceRequest<TResponse> (1.50.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

Google.Apis.Requests

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<TResponse>

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<TResponse>

Extension Method