Class BowireFlowStreamEndpoints
- Namespace
- Kuestenlogik.Bowire.Flows
- Assembly
- Kuestenlogik.Bowire.Flows.dll
#1050 — the workbench's half of a step's stream expectation. The browser
cannot hold a subscription across its own call, so it asks for one here
before the step (POST /api/flows/stream-watch, answered once the
subscription is in place), runs the step, and then asks whether the frames
arrived (POST /api/flows/stream-watch/{id}/await). The watch is the
one bowire test uses, so the result reads the same in both.
public sealed class BowireFlowStreamEndpoints : IBowireEndpointContribution
- Inheritance
-
BowireFlowStreamEndpoints
- Implements
- Inherited Members
Remarks
A watch is ended by its await, by DELETE /api/flows/stream-watch/{id}
when the step fails before it, or, if neither comes, after
Bowire:Flows:StreamWatchLifetimeMs (10 minutes by default).
Constructors
BowireFlowStreamEndpoints()
public BowireFlowStreamEndpoints()
Methods
MapEndpoints(IEndpointRouteBuilder, string)
Map this contribution's endpoints. Called once per host startup
from BowireApiEndpoints.MapBowire.
public void MapEndpoints(IEndpointRouteBuilder endpoints, string basePath)
Parameters
endpointsIEndpointRouteBuilderThe auth-gated IEndpointRouteBuilder group every workbench feature endpoint lives under.
basePathstringThe URL fragment every route is anchored under (e.g.
/bowirefor embedded hosts, empty for the standalone CLI).