Class BowireHeldConnection

Namespace
Kuestenlogik.Bowire.Benchmarking
Assembly
Kuestenlogik.Bowire.Benchmarking.dll

#624 — one connection of a hold, from open to end.

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

Constructors

BowireHeldConnection(int, int, double, double, double?, int, IReadOnlyList<double>, BowireConnectionEnd, string?, double, bool)

#624 — one connection of a hold, from open to end.

public BowireHeldConnection(int Slot, int Attempt, double OpenedAtMs, double LifetimeMs, double? FirstChunkMs, int Chunks, IReadOnlyList<double> GapsMs, BowireConnectionEnd End, string? Error, double SilentForMs, bool Quiet)

Parameters

Slot int

Which of the held connections it is (1-based).

Attempt int

0 for the slot's first connection, 1 and up for its replacements.

OpenedAtMs double

When it was opened, milliseconds after the hold started.

LifetimeMs double

How long it stayed up.

FirstChunkMs double?

Time from opening to its first chunk; null when none came.

Chunks int

How many chunks arrived.

GapsMs IReadOnlyList<double>

The time between consecutive chunks, in order.

End BowireConnectionEnd

How it ended.

Error string

The error, for Error.

SilentForMs double

How long it had been silent when it ended: since its last chunk, or since it opened.

Quiet bool

Held to the end, but silent for at least the quiet threshold: open, not dropped.

Properties

Attempt

0 for the slot's first connection, 1 and up for its replacements.

public int Attempt { get; init; }

Property Value

int

Chunks

How many chunks arrived.

public int Chunks { get; init; }

Property Value

int

End

How it ended.

public BowireConnectionEnd End { get; init; }

Property Value

BowireConnectionEnd

Error

The error, for Error.

public string? Error { get; init; }

Property Value

string

FirstChunkMs

Time from opening to its first chunk; null when none came.

public double? FirstChunkMs { get; init; }

Property Value

double?

GapsMs

The time between consecutive chunks, in order.

public IReadOnlyList<double> GapsMs { get; init; }

Property Value

IReadOnlyList<double>

LifetimeMs

How long it stayed up.

public double LifetimeMs { get; init; }

Property Value

double

OpenedAtMs

When it was opened, milliseconds after the hold started.

public double OpenedAtMs { get; init; }

Property Value

double

Quiet

Held to the end, but silent for at least the quiet threshold: open, not dropped.

public bool Quiet { get; init; }

Property Value

bool

SilentForMs

How long it had been silent when it ended: since its last chunk, or since it opened.

public double SilentForMs { get; init; }

Property Value

double

Slot

Which of the held connections it is (1-based).

public int Slot { get; init; }

Property Value

int

Methods

Deconstruct(out int, out int, out double, out double, out double?, out int, out IReadOnlyList<double>, out BowireConnectionEnd, out string?, out double, out bool)

public void Deconstruct(out int Slot, out int Attempt, out double OpenedAtMs, out double LifetimeMs, out double? FirstChunkMs, out int Chunks, out IReadOnlyList<double> GapsMs, out BowireConnectionEnd End, out string? Error, out double SilentForMs, out bool Quiet)

Parameters

Slot int
Attempt int
OpenedAtMs double
LifetimeMs double
FirstChunkMs double?
Chunks int
GapsMs IReadOnlyList<double>
End BowireConnectionEnd
Error string
SilentForMs double
Quiet bool

Equals(BowireHeldConnection?)

public bool Equals(BowireHeldConnection? other)

Parameters

other BowireHeldConnection

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

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

Parameters

left BowireHeldConnection
right BowireHeldConnection

Returns

bool

operator !=(BowireHeldConnection?, BowireHeldConnection?)

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

Parameters

left BowireHeldConnection
right BowireHeldConnection

Returns

bool