Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Lib.SoapFaultInspector< TException > Class Template Reference

Inspector that deserializes SOAP faults into AdsExceptions and rethrows them. More...

Inheritance diagram for Google.Api.Ads.Common.Lib.SoapFaultInspector< TException >:

Public Member Functions

object BeforeSendRequest (ref Message request, IClientChannel channel)
 A no-op for this inspector. More...
 
void AfterReceiveReply (ref Message reply, object correlationState)
 Throws an AdsException if the response was a SOAP fault. More...
 

Properties

Type ErrorType [get, set]
 Gets or sets the type to deserialize faults into. More...
 

Detailed Description

Inspector that deserializes SOAP faults into AdsExceptions and rethrows them.

Template Parameters
TExceptionThe type of AdsException to throw
Type Constraints
TException :AdsException 

Member Function Documentation

void Google.Api.Ads.Common.Lib.SoapFaultInspector< TException >.AfterReceiveReply ( ref Message  reply,
object  correlationState 
)
inline

Throws an AdsException if the response was a SOAP fault.

Parameters
replyThe response Message
correlationStateThe correlation state returned by BeforeSendRequest
object Google.Api.Ads.Common.Lib.SoapFaultInspector< TException >.BeforeSendRequest ( ref Message  request,
IClientChannel  channel 
)
inline

A no-op for this inspector.

Parameters
requestThe request to perform actions with
channelThe channel to the SOAP service

Property Documentation

Type Google.Api.Ads.Common.Lib.SoapFaultInspector< TException >.ErrorType
getset

Gets or sets the type to deserialize faults into.


The documentation for this class was generated from the following file: