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
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
Duration
How long the hold lasts; every connection still open then is closed by us.
public TimeSpan Duration { get; init; }
Property Value
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
MaxReconnects
The most replacements per connection slot, so a target that refuses every connection does not spin.
public int MaxReconnects { get; init; }
Property Value
Metadata
Request metadata / headers.
public IReadOnlyDictionary<string, string>? Metadata { get; init; }
Property Value
Method
Method name within Service.
public required string Method { get; init; }
Property Value
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
Reconnect
Whether a connection that ends early is replaced, so the hold keeps Connections open.
public bool Reconnect { get; init; }
Property Value
ServerUrl
Target server URL.
public required string ServerUrl { get; init; }
Property Value
Service
Service name as discovery reports it.
public required string Service { get; init; }
Property Value
Methods
Equals(BowireHoldRequest?)
public bool Equals(BowireHoldRequest? other)
Parameters
otherBowireHoldRequest
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 ==(BowireHoldRequest?, BowireHoldRequest?)
public static bool operator ==(BowireHoldRequest? left, BowireHoldRequest? right)
Parameters
leftBowireHoldRequestrightBowireHoldRequest
Returns
operator !=(BowireHoldRequest?, BowireHoldRequest?)
public static bool operator !=(BowireHoldRequest? left, BowireHoldRequest? right)
Parameters
leftBowireHoldRequestrightBowireHoldRequest