C# 클래스 Google.Api.Ads.Common.Lib.TraceListener

Listens to SOAP messages sent and received by this library.
상속: Google.Api.Ads.Common.Lib.SoapListener
파일 보기 프로젝트 열기: Zocdoc/googleads-adwords-dotnet-lib

공개 메소드들

메소드 설명
CleanupAfterCall ( ) : void

Cleans up any resources after an API call.

HandleMessage ( XmlDocument soapMessage, AdsClient service, SoapMessageDirection direction ) : void

Handles the SOAP message.

InitForCall ( ) : void

Initializes the listener for handling an API call.

보호된 메소드들

메소드 설명
AppendHeadersToSoapXml ( string soapRequest, string headers ) : string

Appends the HTTP headers to SOAP xml.

FormatHttpRequest ( string soapRequest ) : string

Creates a formatted http request text, to be written into HTTP logs.

FormatHttpResponse ( string soapResponse ) : string

Creates a formatted http response text, to be written into HTTP logs.

FormatSoapRequest ( WebRequest webRequest, string soapRequest ) : string

Creates a formatted soap request text, to be written into SOAP logs.

FormatSoapResponse ( WebResponse webResponse, string soapResponse ) : string

Creates a formatted soap response text, to be written into SOAP logs.

GetFieldsToMask ( ) : string[]

Gets a list of fields to be masked in xml logs.

GetTimeStamp ( ) : string

Gets the current timestamp as a formatted string.

MaskCredentialsInLogs ( XmlDocument soapMessageXml, string fieldNames ) : void

Masks a list of fields in the SOAP message before logging it.

TraceListener ( AppConfig config ) : System

Protected constructor.

비공개 메소드들

메소드 설명
PerformLogging ( AdsClient service, string soapRequest, string soapResponse ) : void

Performs the SOAP and HTTP logging.

메소드 상세

AppendHeadersToSoapXml() 보호된 메소드

Appends the HTTP headers to SOAP xml.
protected AppendHeadersToSoapXml ( string soapRequest, string headers ) : string
soapRequest string The SOAP request.
headers string The HTTP headers.
리턴 string

CleanupAfterCall() 공개 메소드

Cleans up any resources after an API call.
public CleanupAfterCall ( ) : void
리턴 void

FormatHttpRequest() 보호된 메소드

Creates a formatted http request text, to be written into HTTP logs.
protected FormatHttpRequest ( string soapRequest ) : string
soapRequest string The request xml for this SOAP call.
리턴 string

FormatHttpResponse() 보호된 메소드

Creates a formatted http response text, to be written into HTTP logs.
protected FormatHttpResponse ( string soapResponse ) : string
soapResponse string The response xml for this SOAP call.
리턴 string

FormatSoapRequest() 보호된 메소드

Creates a formatted soap request text, to be written into SOAP logs.
protected FormatSoapRequest ( WebRequest webRequest, string soapRequest ) : string
webRequest System.Net.WebRequest The web request for this SOAP call.
soapRequest string The request xml for this SOAP call.
리턴 string

FormatSoapResponse() 보호된 메소드

Creates a formatted soap response text, to be written into SOAP logs.
protected FormatSoapResponse ( WebResponse webResponse, string soapResponse ) : string
webResponse System.Net.WebResponse The web response for this SOAP call.
soapResponse string The response xml for this SOAP call.
리턴 string

GetFieldsToMask() 보호된 추상적인 메소드

Gets a list of fields to be masked in xml logs.
protected abstract GetFieldsToMask ( ) : string[]
리턴 string[]

GetTimeStamp() 보호된 메소드

Gets the current timestamp as a formatted string.
protected GetTimeStamp ( ) : string
리턴 string

HandleMessage() 공개 메소드

Handles the SOAP message.
public HandleMessage ( XmlDocument soapMessage, AdsClient service, SoapMessageDirection direction ) : void
soapMessage System.Xml.XmlDocument The SOAP message.
service AdsClient The SOAP service.
direction SoapMessageDirection The direction of message.
리턴 void

InitForCall() 공개 메소드

Initializes the listener for handling an API call.
public InitForCall ( ) : void
리턴 void

MaskCredentialsInLogs() 보호된 메소드

Masks a list of fields in the SOAP message before logging it.
protected MaskCredentialsInLogs ( XmlDocument soapMessageXml, string fieldNames ) : void
soapMessageXml System.Xml.XmlDocument The SOAP message, loaded as an XmlDocument. ///
fieldNames string The list of field names to be masked.
리턴 void

TraceListener() 보호된 메소드

Protected constructor.
protected TraceListener ( AppConfig config ) : System
config AppConfig The config class.
리턴 System