Class ClientServiceRequest (1.60.0)

public abstract class ClientServiceRequest

Represents an abstract request base class to make requests to a service.

Inheritance

object > ClientServiceRequest

Namespace

GoogleApisRequests

Assembly

Google.Apis.dll

Fields

_exceptionHandlers

protected List<IHttpExceptionHandler> _exceptionHandlers

Exception handlers for this request only.

Field Value
TypeDescription
ListIHttpExceptionHandler

_executeInterceptors

protected List<IHttpExecuteInterceptor> _executeInterceptors

Execute interceptors for this request only.

Field Value
TypeDescription
ListIHttpExecuteInterceptor

_unsuccessfulResponseHandlers

protected List<IHttpUnsuccessfulResponseHandler> _unsuccessfulResponseHandlers

Unsuccessful response handlers for this request only.

Field Value
TypeDescription
ListIHttpUnsuccessfulResponseHandler

Properties

Credential

public IHttpExecuteInterceptor Credential { get; set; }

Credential to use for this request. If Credential implements IHttpUnsuccessfulResponseHandler then it will also be included as a handler of an unsuccessful response.

Property Value
TypeDescription
IHttpExecuteInterceptor

Methods

AddExceptionHandler(IHttpExceptionHandler)

public void AddExceptionHandler(IHttpExceptionHandler handler)

Add an exception handler for this request only.

Parameter
NameDescription
handlerIHttpExceptionHandler

The exception handler. Must not be null.

AddExecuteInterceptor(IHttpExecuteInterceptor)

public void AddExecuteInterceptor(IHttpExecuteInterceptor handler)

Add an execute interceptor for this request only. If the request is retried, the interceptor will be called on each attempt.

Parameter
NameDescription
handlerIHttpExecuteInterceptor

The execute interceptor. Must not be null.

AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)

public void AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler handler)

Add an unsuccessful response handler for this request only.

Parameter
NameDescription
handlerIHttpUnsuccessfulResponseHandler

The unsuccessful response handler. Must not be null.

Extension Methods