Class TestModeTransportOptions
Holds behavior settings for TestModeTransport.
Inheritance
Namespace: Wss.CoreModule
Assembly: WSS_Core_Interface.dll
Syntax
public sealed class TestModeTransportOptions
Remarks
The transport constructor requires a non-null options instance. When Rng or FallbackPayload is left null, TestModeTransport substitutes safe defaults.
Properties
AutoResponderAsync
Gets or sets an optional override auto-responder. When null, the built-in responder is used.
Declaration
public Func<byte[], Task<byte[]>> AutoResponderAsync { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<byte[], Task<byte[]>> |
BaseLatency
Gets or sets the artificial latency applied to inbound delivery.
Declaration
public TimeSpan BaseLatency { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
FallbackPayload
Gets or sets the payload used when an incoming checksum is invalid. When null, TestModeTransport uses a default fallback payload.
Declaration
public byte[] FallbackPayload { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
InboundDropProbability
Gets or sets the probability in the range [0..1] of randomly dropping an inbound chunk.
Declaration
public double InboundDropProbability { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
JitterMs
Gets or sets the random jitter added to BaseLatency, in milliseconds.
Declaration
public int JitterMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MaxInboundChunkSize
Gets or sets the maximum inbound chunk size. Values greater than zero split inbound payloads into chunks up to this size.
Declaration
public int MaxInboundChunkSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Rng
Gets or sets the random generator used for jitter, chunk sizing, drops, and synthetic replies. When null, TestModeTransport creates a default instance.
Declaration
public Random Rng { get; set; }
Property Value
| Type | Description |
|---|---|
| Random |