Class LogMessageBuilder
A utility class to build log messages.
Inheritance
LogMessageBuilder
Namespace: Ingenico.Connect.Sdk.Logging
Assembly: connect-sdk-dotnet.dll
Syntax
public abstract class LogMessageBuilder
Constructors
LogMessageBuilder(string, BodyObfuscator, HeaderObfuscator)
Declaration
protected LogMessageBuilder(string requestId, BodyObfuscator bodyObfuscator, HeaderObfuscator headerObfuscator)
Parameters
LogMessageBuilder(string)
Declaration
[Obsolete("Use the constructor that takes a BodyObfuscator and HeaderObfuscator instead")]
protected LogMessageBuilder(string requestId)
Parameters
Type |
Name |
Description |
string |
requestId |
|
Properties
Body
Declaration
protected string Body { get; }
Property Value
BodyObfuscator
Declaration
protected BodyObfuscator BodyObfuscator { get; }
Property Value
Charset
Declaration
protected string Charset { get; }
Property Value
ContentType
Declaration
protected string ContentType { get; }
Property Value
Declaration
protected HeaderObfuscator HeaderObfuscator { get; }
Property Value
Declaration
protected string Headers { get; }
Property Value
Message
Declaration
public abstract string Message { get; }
Property Value
RequestId
Declaration
protected string RequestId { get; }
Property Value
Methods
Declaration
public void AddHeader(string name, string value)
Parameters
EmptyIfNull(string)
Declaration
protected string EmptyIfNull(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
SetBinaryContentBody(string)
Declaration
public void SetBinaryContentBody(string contentType)
Parameters
Type |
Name |
Description |
string |
contentType |
|
SetBody(string, string)
Declaration
public void SetBody(string body, string contentType)
Parameters