public abstract class ClientServiceRequestRepresents an abstract request base class to make requests to a service.
Derived Types
Namespace
GoogleApisRequestsAssembly
Google.Apis.dll
Fields
_exceptionHandlers
protected List<IHttpExceptionHandler> _exceptionHandlersException handlers for this request only.
| Field Value | |
|---|---|
| Type | Description |
ListIHttpExceptionHandler |
|
_executeInterceptors
protected List<IHttpExecuteInterceptor> _executeInterceptorsExecute interceptors for this request only.
| Field Value | |
|---|---|
| Type | Description |
ListIHttpExecuteInterceptor |
|
_unsuccessfulResponseHandlers
protected List<IHttpUnsuccessfulResponseHandler> _unsuccessfulResponseHandlersUnsuccessful response handlers for this request only.
| Field Value | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
IHttpExecuteInterceptor |
|
Methods
AddExceptionHandler(IHttpExceptionHandler)
public void AddExceptionHandler(IHttpExceptionHandler handler)Add an exception handler for this request only.
| Parameter | |
|---|---|
| Name | Description |
handler |
IHttpExceptionHandlerThe exception handler. Must not be |
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 | |
|---|---|
| Name | Description |
handler |
IHttpExecuteInterceptorThe execute interceptor. Must not be |
AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
public void AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler handler)Add an unsuccessful response handler for this request only.
| Parameter | |
|---|---|
| Name | Description |
handler |
IHttpUnsuccessfulResponseHandlerThe unsuccessful response handler. Must not be |