Class InvokeResult
- Namespace
- Kuestenlogik.Bowire
- Assembly
- Kuestenlogik.Bowire.dll
Result of a protocol invocation (unary or client-streaming).
public sealed record InvokeResult : IEquatable<InvokeResult>
- Inheritance
-
InvokeResult
- Implements
- Inherited Members
Constructors
InvokeResult(string?, long, string, Dictionary<string, string>, byte[]?)
Result of a protocol invocation (unary or client-streaming).
public InvokeResult(string? Response, long DurationMs, string Status, Dictionary<string, string> Metadata, byte[]? ResponseBinary = null)
Parameters
ResponsestringResponse as JSON string for display + recording.
DurationMslongWall-clock duration the invocation took, server-side.
StatusstringStatus label (HTTP code name, gRPC status name, or
"OK").MetadataDictionary<string, string>Response headers + trailers (for gRPC, trailer keys are prefixed with
_trailer:).ResponseBinarybyte[]Optional raw wire-bytes of the response. Populated by protocols that have a binary serialization distinct from their JSON representation (gRPC protobuf today). Consumed by the mock-server replay path so the recorded response can be re-emitted byte-for-byte without runtime re-encoding.
nullfor protocols where the JSON in Response is the authoritative wire form (REST, GraphQL, SignalR).
Properties
DurationMs
Wall-clock duration the invocation took, server-side.
public long DurationMs { get; init; }
Property Value
Metadata
Response headers + trailers (for gRPC, trailer keys are prefixed with _trailer:).
public Dictionary<string, string> Metadata { get; init; }
Property Value
Response
Response as JSON string for display + recording.
public string? Response { get; init; }
Property Value
ResponseBinary
Optional raw wire-bytes of the response. Populated by protocols that have
a binary serialization distinct from their JSON representation (gRPC
protobuf today). Consumed by the mock-server replay path so the recorded
response can be re-emitted byte-for-byte without runtime re-encoding.
null for protocols where the JSON in Response is the
authoritative wire form (REST, GraphQL, SignalR).
public byte[]? ResponseBinary { get; init; }
Property Value
- byte[]
Status
Status label (HTTP code name, gRPC status name, or "OK").
public string Status { get; init; }
Property Value
Methods
Deconstruct(out string?, out long, out string, out Dictionary<string, string>, out byte[]?)
public void Deconstruct(out string? Response, out long DurationMs, out string Status, out Dictionary<string, string> Metadata, out byte[]? ResponseBinary)
Parameters
ResponsestringDurationMslongStatusstringMetadataDictionary<string, string>ResponseBinarybyte[]
Equals(InvokeResult?)
public bool Equals(InvokeResult? other)
Parameters
otherInvokeResult
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 ==(InvokeResult?, InvokeResult?)
public static bool operator ==(InvokeResult? left, InvokeResult? right)
Parameters
leftInvokeResultrightInvokeResult
Returns
operator !=(InvokeResult?, InvokeResult?)
public static bool operator !=(InvokeResult? left, InvokeResult? right)
Parameters
leftInvokeResultrightInvokeResult