Class MockRequestEntry

Namespace
Kuestenlogik.Bowire.Mock.Management
Assembly
Kuestenlogik.Bowire.Mock.dll

Single inbound request against a running mock, captured for the workbench's per-mock request-log view (issue #57). One per HandleAsync(HttpContext, Func<Task>) invocation, emitted via IMockRequestObserver after the response has been written.

public sealed record MockRequestEntry : IEquatable<MockRequestEntry>
Inheritance
MockRequestEntry
Implements
Inherited Members

Constructors

MockRequestEntry(long, DateTimeOffset, string, string, int, string?, string, double, string?, string?, IReadOnlyDictionary<string, string>?)

Single inbound request against a running mock, captured for the workbench's per-mock request-log view (issue #57). One per HandleAsync(HttpContext, Func<Task>) invocation, emitted via IMockRequestObserver after the response has been written.

public MockRequestEntry(long Sequence, DateTimeOffset Timestamp, string Method, string Path, int StatusCode, string? MatchedStepId, string Outcome, double DurationMs, string? Fault = null, string? Query = null, IReadOnlyDictionary<string, string>? Headers = null)

Parameters

Sequence long
Timestamp DateTimeOffset
Method string
Path string
StatusCode int
MatchedStepId string
Outcome string
DurationMs double
Fault string
Query string
Headers IReadOnlyDictionary<string, string>

Properties

DurationMs

public double DurationMs { get; init; }

Property Value

double

Fault

public string? Fault { get; init; }

Property Value

string

Headers

public IReadOnlyDictionary<string, string>? Headers { get; init; }

Property Value

IReadOnlyDictionary<string, string>

MatchedStepId

public string? MatchedStepId { get; init; }

Property Value

string

Method

public string Method { get; init; }

Property Value

string

Outcome

public string Outcome { get; init; }

Property Value

string

Path

public string Path { get; init; }

Property Value

string

Query

public string? Query { get; init; }

Property Value

string

Sequence

public long Sequence { get; init; }

Property Value

long

StatusCode

public int StatusCode { get; init; }

Property Value

int

Timestamp

public DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset

Methods

Deconstruct(out long, out DateTimeOffset, out string, out string, out int, out string?, out string, out double, out string?, out string?, out IReadOnlyDictionary<string, string>?)

public void Deconstruct(out long Sequence, out DateTimeOffset Timestamp, out string Method, out string Path, out int StatusCode, out string? MatchedStepId, out string Outcome, out double DurationMs, out string? Fault, out string? Query, out IReadOnlyDictionary<string, string>? Headers)

Parameters

Sequence long
Timestamp DateTimeOffset
Method string
Path string
StatusCode int
MatchedStepId string
Outcome string
DurationMs double
Fault string
Query string
Headers IReadOnlyDictionary<string, string>

Equals(MockRequestEntry?)

public bool Equals(MockRequestEntry? other)

Parameters

other MockRequestEntry

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 ==(MockRequestEntry?, MockRequestEntry?)

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

Parameters

left MockRequestEntry
right MockRequestEntry

Returns

bool

operator !=(MockRequestEntry?, MockRequestEntry?)

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

Parameters

left MockRequestEntry
right MockRequestEntry

Returns

bool