Class FlowStreamExpectation
- Namespace
- Kuestenlogik.Bowire.Flows
- Assembly
- Kuestenlogik.Bowire.Flows.dll
#1050 — frames a step expects on a stream: any server-streaming method (an MQTT topic, a Kafka consume, an actor-system tap), subscribed before the step's call and watched after it until the frames arrived or TimeoutMs passed.
Either Match with Count (that many frames
meeting every condition) or Sequence (frames meeting each
entry's conditions, in that order). Conditions are flow expectations read
against the frame as a body; a field holding JSON text is read as JSON, so
payload.temp reaches into an MQTT payload.
public sealed class FlowStreamExpectation
- Inheritance
-
FlowStreamExpectation
- Inherited Members
Constructors
FlowStreamExpectation()
public FlowStreamExpectation()
Properties
Body
The stream's request body, if it takes one.
[JsonPropertyName("body")]
public string? Body { get; set; }
Property Value
Count
How many frames meeting Match must arrive (default 1).
[JsonPropertyName("count")]
public int Count { get; set; }
Property Value
Match
Conditions a counted frame meets; empty for any frame.
[JsonPropertyName("match")]
public List<FlowExpectation> Match { get; set; }
Property Value
Method
The stream method: the topic, the tap, the consume method.
[JsonPropertyName("method")]
public string? Method { get; set; }
Property Value
Protocol
Protocol id of the stream; null for the step's.
[JsonPropertyName("protocol")]
public string? Protocol { get; set; }
Property Value
Sequence
Frames that must arrive in this order, each meeting its entry's conditions; replaces Match and Count.
[JsonPropertyName("sequence")]
public List<List<FlowExpectation>>? Sequence { get; set; }
Property Value
ServerUrl
Server URL of the stream; null for the step's.
[JsonPropertyName("serverUrl")]
public string? ServerUrl { get; set; }
Property Value
Service
Service of the stream method.
[JsonPropertyName("service")]
public string? Service { get; set; }
Property Value
TimeoutMs
How long to wait after the step; null for the configured default (Bowire:Flows:StreamTimeoutMs, 10 s).
[JsonPropertyName("timeoutMs")]
public int? TimeoutMs { get; set; }
Property Value
- int?