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
SlotintWhich of the held connections it is (1-based).
Attemptint0 for the slot's first connection, 1 and up for its replacements.
OpenedAtMsdoubleWhen it was opened, milliseconds after the hold started.
LifetimeMsdoubleHow long it stayed up.
FirstChunkMsdouble?Time from opening to its first chunk; null when none came.
ChunksintHow many chunks arrived.
GapsMsIReadOnlyList<double>The time between consecutive chunks, in order.
EndBowireConnectionEndHow it ended.
ErrorstringThe error, for Error.
SilentForMsdoubleHow long it had been silent when it ended: since its last chunk, or since it opened.
QuietboolHeld 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
Chunks
How many chunks arrived.
public int Chunks { get; init; }
Property Value
End
How it ended.
public BowireConnectionEnd End { get; init; }
Property Value
Error
The error, for Error.
public string? Error { get; init; }
Property Value
FirstChunkMs
Time from opening to its first chunk; null when none came.
public double? FirstChunkMs { get; init; }
Property Value
GapsMs
The time between consecutive chunks, in order.
public IReadOnlyList<double> GapsMs { get; init; }
Property Value
LifetimeMs
How long it stayed up.
public double LifetimeMs { get; init; }
Property Value
OpenedAtMs
When it was opened, milliseconds after the hold started.
public double OpenedAtMs { get; init; }
Property Value
Quiet
Held to the end, but silent for at least the quiet threshold: open, not dropped.
public bool Quiet { get; init; }
Property Value
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
Slot
Which of the held connections it is (1-based).
public int Slot { get; init; }
Property Value
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
SlotintAttemptintOpenedAtMsdoubleLifetimeMsdoubleFirstChunkMsdouble?ChunksintGapsMsIReadOnlyList<double>EndBowireConnectionEndErrorstringSilentForMsdoubleQuietbool
Equals(BowireHeldConnection?)
public bool Equals(BowireHeldConnection? other)
Parameters
otherBowireHeldConnection
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 ==(BowireHeldConnection?, BowireHeldConnection?)
public static bool operator ==(BowireHeldConnection? left, BowireHeldConnection? right)
Parameters
leftBowireHeldConnectionrightBowireHeldConnection
Returns
operator !=(BowireHeldConnection?, BowireHeldConnection?)
public static bool operator !=(BowireHeldConnection? left, BowireHeldConnection? right)
Parameters
leftBowireHeldConnectionrightBowireHeldConnection