Class MessagingAttachmentOptions

Namespace
ProtoTest.Messaging
Assembly
ProtoTest.Messaging.dll

Controls whether published and received message payloads are captured as test attachments. Payloads are redacted through JsonDiagnosticSanitizer and capped at MaxDiagnosticBodyLength. Non-Json payloads are captured as plain text. Binds from ConfigurationSectionName.

public sealed class MessagingAttachmentOptions : JsonDiagnosticOptions, IProtoConfigurableOptions
Inheritance
MessagingAttachmentOptions
Implements
Inherited Members
Extension Methods

Fields

ConfigurationSectionName

The configuration section this type binds from.

public const string ConfigurationSectionName = "ProtoTest:Messaging:Attachments"

Field Value

string

Properties

CapturePublishedPayloads

Captures published payloads as attachments. Defaults to true.

public bool CapturePublishedPayloads { get; set; }

Property Value

bool

CaptureReceivedPayloads

Captures received payloads as attachments. Defaults to true.

public bool CaptureReceivedPayloads { get; set; }

Property Value

bool