Show / Hide Table of Contents

Class ClientServiceRequest

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

Inheritance
object
ClientServiceRequest
ClientServiceRequest<TResponse>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Requests
Assembly: Google.Apis.dll
Syntax
public abstract class ClientServiceRequest

Fields

_exceptionHandlers

Exception handlers for this request only.

Declaration
protected List<IHttpExceptionHandler> _exceptionHandlers
Field Value
Type Description
List<IHttpExceptionHandler>

_executeInterceptors

Execute interceptors for this request only.

Declaration
protected List<IHttpExecuteInterceptor> _executeInterceptors
Field Value
Type Description
List<IHttpExecuteInterceptor>

_unsuccessfulResponseHandlers

Unsuccessful response handlers for this request only.

Declaration
protected List<IHttpUnsuccessfulResponseHandler> _unsuccessfulResponseHandlers
Field Value
Type Description
List<IHttpUnsuccessfulResponseHandler>

Properties

Credential

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

Declaration
public IHttpExecuteInterceptor Credential { get; set; }
Property Value
Type Description
IHttpExecuteInterceptor

Methods

AddExceptionHandler(IHttpExceptionHandler)

Add an exception handler for this request only.

Declaration
public void AddExceptionHandler(IHttpExceptionHandler handler)
Parameters
Type Name Description
IHttpExceptionHandler handler

The exception handler. Must not be null.

AddExecuteInterceptor(IHttpExecuteInterceptor)

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

Declaration
public void AddExecuteInterceptor(IHttpExecuteInterceptor handler)
Parameters
Type Name Description
IHttpExecuteInterceptor handler

The execute interceptor. Must not be null.

AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)

Add an unsuccessful response handler for this request only.

Declaration
public void AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler handler)
Parameters
Type Name Description
IHttpUnsuccessfulResponseHandler handler

The unsuccessful response handler. Must not be null.

Extension Methods

ClientServiceRequestExtensions.Configure<TRequest>(TRequest, Action<TRequest>)
In this article
Back to top Generated by DocFX