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
SequencelongTimestampDateTimeOffsetMethodstringPathstringStatusCodeintMatchedStepIdstringOutcomestringDurationMsdoubleFaultstringQuerystringHeadersIReadOnlyDictionary<string, string>
Properties
DurationMs
public double DurationMs { get; init; }
Property Value
Fault
public string? Fault { get; init; }
Property Value
Headers
public IReadOnlyDictionary<string, string>? Headers { get; init; }
Property Value
MatchedStepId
public string? MatchedStepId { get; init; }
Property Value
Method
public string Method { get; init; }
Property Value
Outcome
public string Outcome { get; init; }
Property Value
Path
public string Path { get; init; }
Property Value
Query
public string? Query { get; init; }
Property Value
Sequence
public long Sequence { get; init; }
Property Value
StatusCode
public int StatusCode { get; init; }
Property Value
Timestamp
public DateTimeOffset Timestamp { get; init; }
Property Value
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
SequencelongTimestampDateTimeOffsetMethodstringPathstringStatusCodeintMatchedStepIdstringOutcomestringDurationMsdoubleFaultstringQuerystringHeadersIReadOnlyDictionary<string, string>
Equals(MockRequestEntry?)
public bool Equals(MockRequestEntry? other)
Parameters
otherMockRequestEntry
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 ==(MockRequestEntry?, MockRequestEntry?)
public static bool operator ==(MockRequestEntry? left, MockRequestEntry? right)
Parameters
leftMockRequestEntryrightMockRequestEntry
Returns
operator !=(MockRequestEntry?, MockRequestEntry?)
public static bool operator !=(MockRequestEntry? left, MockRequestEntry? right)
Parameters
leftMockRequestEntryrightMockRequestEntry