Class ProtoDiagnosticCaptureOptions
Capture and redaction options every protocol's attachment configuration shares: whether request bodies, responses and expected shapes are captured, plus the redaction settings from JsonDiagnosticOptions. A protocol adds only what is genuinely its own, such as HTTP's sensitive headers and query parameters.
public class ProtoDiagnosticCaptureOptions : JsonDiagnosticOptions, IProtoConfigurableOptions
- Inheritance
-
ProtoDiagnosticCaptureOptions
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ProtoDiagnosticCaptureOptions(string)
Creates options bound to a known configuration section, e.g. ProtoTest:Rest:Attachments.
public ProtoDiagnosticCaptureOptions(string configurationSectionName)
Parameters
configurationSectionNamestring
Properties
CaptureExpectedShapes
Captures the expected shape used by shape assertions. Defaults to true.
public bool CaptureExpectedShapes { get; set; }
Property Value
CaptureRequestBodies
Captures outgoing request bodies as attachments. Defaults to true.
public bool CaptureRequestBodies { get; set; }
Property Value
CaptureResponses
Captures response bodies as attachments. Defaults to true.
public bool CaptureResponses { get; set; }
Property Value
ConfigurationSectionName
The configuration section this instance binds from, e.g. "ProtoTest:Rest:Attachments".
public string ConfigurationSectionName { get; }