Class StreamFrame
- Namespace
- Kuestenlogik.Bowire
- Assembly
- Kuestenlogik.Bowire.dll
One frame yielded by a server-streaming call that exposes wire bytes.
Json is the display / recording form; Binary
is what the mock server replays on the wire.
public sealed record StreamFrame : IEquatable<StreamFrame>
- Inheritance
-
StreamFrame
- Implements
- Inherited Members
Constructors
StreamFrame(string, byte[]?)
One frame yielded by a server-streaming call that exposes wire bytes.
Json is the display / recording form; Binary
is what the mock server replays on the wire.
public StreamFrame(string Json, byte[]? Binary)
Parameters
Properties
Binary
public byte[]? Binary { get; init; }
Property Value
- byte[]
Error
Why the stream stopped, when it stopped for a reason (#712).
public StreamError? Error { get; init; }
Property Value
Remarks
Null on an ordinary frame, which is every frame carrying data. Set, it means this is the last one and Json is not payload the caller asked for.
Before this there was nowhere to say it, so plugins wrote the reason
into Json — where the consumer expects payload. The
gRPC plugin had already grown a private ErrorCode on its own
internal frame record for exactly this; that is the field this one
replaces.
Json
public string Json { get; init; }
Property Value
Methods
Deconstruct(out string, out byte[]?)
public void Deconstruct(out string Json, out byte[]? Binary)
Parameters
Equals(StreamFrame?)
public bool Equals(StreamFrame? other)
Parameters
otherStreamFrame
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 ==(StreamFrame?, StreamFrame?)
public static bool operator ==(StreamFrame? left, StreamFrame? right)
Parameters
leftStreamFramerightStreamFrame
Returns
operator !=(StreamFrame?, StreamFrame?)
public static bool operator !=(StreamFrame? left, StreamFrame? right)
Parameters
leftStreamFramerightStreamFrame