Class ProtoShapeAssertionContext
The context of one traced shape assertion: where it records, under which parent, with which extra attributes, and whether the expected shape is captured as an attachment.
public sealed record ProtoShapeAssertionContext : IEquatable<ProtoShapeAssertionContext>
- Inheritance
-
ProtoShapeAssertionContext
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoShapeAssertionContext(ProtoExecutionContext?, string, string, string?, IReadOnlyDictionary<string, string?>?, bool, string?, string?)
The context of one traced shape assertion: where it records, under which parent, with which extra attributes, and whether the expected shape is captured as an attachment.
public ProtoShapeAssertionContext(ProtoExecutionContext? Execution, string Source, string Title, string? ParentOperationId = null, IReadOnlyDictionary<string, string?>? ExtraAttributes = null, bool CaptureExpectedShape = false, string? AttachmentName = null, string? AttachmentDescription = null)
Parameters
ExecutionProtoExecutionContextSourcestringTitlestringParentOperationIdstringExtraAttributesIReadOnlyDictionary<string, string>CaptureExpectedShapeboolAttachmentNamestringAttachmentDescriptionstring
Properties
AttachmentDescription
public string? AttachmentDescription { get; init; }
Property Value
AttachmentName
public string? AttachmentName { get; init; }
Property Value
CaptureExpectedShape
public bool CaptureExpectedShape { get; init; }
Property Value
Execution
public ProtoExecutionContext? Execution { get; init; }
Property Value
ExtraAttributes
public IReadOnlyDictionary<string, string?>? ExtraAttributes { get; init; }
Property Value
ParentOperationId
public string? ParentOperationId { get; init; }
Property Value
Source
public string Source { get; init; }
Property Value
Title
public string Title { get; init; }