Show / Hide Table of Contents

Class ClientServiceRequest

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

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<TResponse>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.Collections.Generic.List<Google.Apis.Http.IHttpExceptionHandler>

_executeInterceptors

Unsuccessful response handlers for this request only.

Declaration
protected List<IHttpExecuteInterceptor> _executeInterceptors
Field Value
Type Description
System.Collections.Generic.List<Google.Apis.Http.IHttpExecuteInterceptor>

_unsuccessfulResponseHandlers

Unsuccessful response handlers for this request only.

Declaration
protected List<IHttpUnsuccessfulResponseHandler> _unsuccessfulResponseHandlers
Field Value
Type Description
System.Collections.Generic.List<Google.Apis.Http.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
Google.Apis.Http.IHttpExecuteInterceptor

Methods

AddExceptionHandler(IHttpExceptionHandler)

Add an exception handler for this request only.

Declaration
public void AddExceptionHandler(IHttpExceptionHandler handler)
Parameters
Type Name Description
Google.Apis.Http.IHttpExceptionHandler handler

The exception handler. Must not be null.

AddExecuteInterceptor(IHttpExecuteInterceptor)

Add an unsuccessful response handler for this request only.

Declaration
public void AddExecuteInterceptor(IHttpExecuteInterceptor handler)
Parameters
Type Name Description
Google.Apis.Http.IHttpExecuteInterceptor handler

The unsuccessful response handler. 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
Google.Apis.Http.IHttpUnsuccessfulResponseHandler handler

The unsuccessful response handler. Must not be null.

Extension Methods

ClientServiceRequestExtensions.Configure<TRequest>(TRequest, Action<TRequest>)
In This Article
Back to top