Class BowireRecordingCorrelation
- Namespace
- Kuestenlogik.Bowire.Mocking
- Assembly
- Kuestenlogik.Bowire.dll
The correlation key a recording is read through — see
Correlation. Data only; the analysis
that produces and consumes it lives in the
Kuestenlogik.Bowire.Recordings package so core carries no
correlation logic.
public sealed record BowireRecordingCorrelation : IEquatable<BowireRecordingCorrelation>
- Inheritance
-
BowireRecordingCorrelation
- Implements
- Inherited Members
Constructors
BowireRecordingCorrelation(string, string, string?)
The correlation key a recording is read through — see
Correlation. Data only; the analysis
that produces and consumes it lives in the
Kuestenlogik.Bowire.Recordings package so core carries no
correlation logic.
public BowireRecordingCorrelation(string Name, string Value, string? Source = null)
Parameters
NamestringThe signal's name — either a correlation header (
traceparent,x-correlation-id, …) or a JSON leaf name found in the step payloads (shipId,orderId, …). Matched case- and separator-insensitively, and by suffix for leaves, soshipIdalso tiesonShipIdandOccupiedByShipIdtogether.ValuestringThe value that identifies this one transaction (
"101"). Always a string — a JSON number leaf is compared by its invariant text so101and"101"correlate across protocols that disagree about the type.SourcestringWhere the key came from:
"header","field", ornullwhen the writer had no opinion (readers re-derive it).
Properties
Name
The signal's name — either a correlation header
(traceparent, x-correlation-id, …) or a JSON leaf name
found in the step payloads (shipId, orderId, …).
Matched case- and separator-insensitively, and by suffix for leaves,
so shipId also ties onShipId and OccupiedByShipId
together.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Source
Where the key came from: "header", "field", or
null when the writer had no opinion (readers re-derive it).
[JsonPropertyName("source")]
public string? Source { get; init; }
Property Value
Value
The value that identifies this one transaction ("101").
Always a string — a JSON number leaf is compared by its invariant
text so 101 and "101" correlate across protocols that
disagree about the type.
[JsonPropertyName("value")]
public string Value { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string?)
public void Deconstruct(out string Name, out string Value, out string? Source)
Parameters
Equals(BowireRecordingCorrelation?)
public bool Equals(BowireRecordingCorrelation? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireRecordingCorrelation?, BowireRecordingCorrelation?)
public static bool operator ==(BowireRecordingCorrelation? left, BowireRecordingCorrelation? right)
Parameters
Returns
operator !=(BowireRecordingCorrelation?, BowireRecordingCorrelation?)
public static bool operator !=(BowireRecordingCorrelation? left, BowireRecordingCorrelation? right)