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

Json string
Binary byte[]

Properties

Binary

public byte[]? Binary { get; init; }

Property Value

byte[]

Json

public string Json { get; init; }

Property Value

string

Methods

Deconstruct(out string, out byte[]?)

public void Deconstruct(out string Json, out byte[]? Binary)

Parameters

Json string
Binary byte[]

Equals(StreamFrame?)

public bool Equals(StreamFrame? other)

Parameters

other StreamFrame

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

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

Parameters

left StreamFrame
right StreamFrame

Returns

bool

operator !=(StreamFrame?, StreamFrame?)

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

Parameters

left StreamFrame
right StreamFrame

Returns

bool