Class BowireConnectionHoldRunner
- Namespace
- Kuestenlogik.Bowire.Benchmarking
- Assembly
- Kuestenlogik.Bowire.Benchmarking.dll
#624 — opens connections and watches them instead of counting completions: N held at once for a duration, each reported by how long it stayed up, what arrived on it and how it ended. The loop differs in kind from BowireBenchmarkRunner's "call, time, repeat": it is "open, hold, observe", and it ends on a clock.
It measures what arrives at Bowire's end of the connection, which is enough to compare two configurations (#622) and no more: it does not judge an intermediary it cannot see.
public static class BowireConnectionHoldRunner
- Inheritance
-
BowireConnectionHoldRunner
- Inherited Members
Methods
IsChannelAsync(IBowireProtocol, BowireHoldRequest, CancellationToken)
Whether the method is held as a channel, as discovery describes it: streaming from the client side (a WebSocket, a duplex call) is a channel. Null when discovery does not list the method.
public static Task<bool?> IsChannelAsync(IBowireProtocol protocol, BowireHoldRequest request, CancellationToken ct = default)
Parameters
protocolIBowireProtocolrequestBowireHoldRequestctCancellationToken
Returns
RunAsync(IBowireProtocol, BowireHoldRequest, CancellationToken)
Hold request's connections for its duration.
public static Task<BowireHoldStats> RunAsync(IBowireProtocol protocol, BowireHoldRequest request, CancellationToken ct = default)
Parameters
protocolIBowireProtocolrequestBowireHoldRequestctCancellationToken