Class LogMessageBuilder
A utility class to build log messages.
Inheritance
LogMessageBuilder
Namespace: Worldline.Connect.Sdk.Logging
Assembly: Worldline.Connect.Sdk.dll
Syntax
public abstract class LogMessageBuilder
Constructors
LogMessageBuilder(string, BodyObfuscator, HeaderObfuscator)
Declaration
protected LogMessageBuilder(string requestId, BodyObfuscator bodyObfuscator, HeaderObfuscator headerObfuscator)
Parameters
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 static 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