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

Name string

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.

Value string

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.

Source string

Where the key came from: "header", "field", or null when 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

string

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

string

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

string

Methods

Deconstruct(out string, out string, out string?)

public void Deconstruct(out string Name, out string Value, out string? Source)

Parameters

Name string
Value string
Source string

Equals(BowireRecordingCorrelation?)

public bool Equals(BowireRecordingCorrelation? other)

Parameters

other BowireRecordingCorrelation

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireRecordingCorrelation?, BowireRecordingCorrelation?)

public static bool operator ==(BowireRecordingCorrelation? left, BowireRecordingCorrelation? right)

Parameters

left BowireRecordingCorrelation
right BowireRecordingCorrelation

Returns

bool

operator !=(BowireRecordingCorrelation?, BowireRecordingCorrelation?)

public static bool operator !=(BowireRecordingCorrelation? left, BowireRecordingCorrelation? right)

Parameters

left BowireRecordingCorrelation
right BowireRecordingCorrelation

Returns

bool