Class BowireHoldRequest

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

#624 — what a connection-hold run opens and for how long.

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

Constructors

BowireHoldRequest()

public BowireHoldRequest()

Properties

Body

The request body: the stream's request, or the first message sent on a channel (a WebSocket that answers only when spoken to). Null sends nothing.

public string? Body { get; init; }

Property Value

string

Channel

Whether to hold a channel (OpenChannelAsync(string, string, string, bool, Dictionary<string, string>?, CancellationToken), a WebSocket) rather than a server stream (InvokeStreamAsync(string, string, string, List<string>, bool, Dictionary<string, string>?, CancellationToken), SSE, a gRPC server stream). Null decides: from discovery where it lists the method (streaming from the client side is a channel), else by asking the plugin for a channel and taking a stream when it has none.

public bool? Channel { get; init; }

Property Value

bool?

Connections

How many connections are held at once.

public int Connections { get; init; }

Property Value

int

Duration

How long the hold lasts; every connection still open then is closed by us.

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

FirstChunkTimeout

A connection with no first chunk within this time ends as Timeout; null waits for the whole hold.

public TimeSpan? FirstChunkTimeout { get; init; }

Property Value

TimeSpan?

MaxReconnects

The most replacements per connection slot, so a target that refuses every connection does not spin.

public int MaxReconnects { get; init; }

Property Value

int

Metadata

Request metadata / headers.

public IReadOnlyDictionary<string, string>? Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Method

Method name within Service.

public required string Method { get; init; }

Property Value

string

QuietAfter

A connection held to the end whose last chunk is at least this old is reported as quiet: open, but silent. Zero turns the distinction off.

public TimeSpan QuietAfter { get; init; }

Property Value

TimeSpan

Reconnect

Whether a connection that ends early is replaced, so the hold keeps Connections open.

public bool Reconnect { get; init; }

Property Value

bool

ServerUrl

Target server URL.

public required string ServerUrl { get; init; }

Property Value

string

Service

Service name as discovery reports it.

public required string Service { get; init; }

Property Value

string

Methods

Equals(BowireHoldRequest?)

public bool Equals(BowireHoldRequest? other)

Parameters

other BowireHoldRequest

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

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

Parameters

left BowireHoldRequest
right BowireHoldRequest

Returns

bool

operator !=(BowireHoldRequest?, BowireHoldRequest?)

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

Parameters

left BowireHoldRequest
right BowireHoldRequest

Returns

bool