Class BowireHubEndpoints
- Namespace
- Kuestenlogik.Bowire.AgentHub
- Assembly
- Kuestenlogik.Bowire.dll
The hub side of #128: a registry every Bowire agent pushes itself into.
public static class BowireHubEndpoints
- Inheritance
-
BowireHubEndpoints
- Inherited Members
Remarks
POST /hub/agents | register or heartbeat — idempotent on (serviceName, instanceId); answers the agent's id |
GET /hub/agents | every known agent with lastSeen and live |
GET /hub/agents/catalogue | the live agents' catalogue entries, in the shape Kuestenlogik.Bowire.Catalogue.Agent reads |
DELETE /hub/agents/{id} | deregister |
The hub does not proxy to its agents: it lists them and links to their own workbench.
Methods
MapBowireHub(IEndpointRouteBuilder, string)
Maps the Bowire hub under pattern (default
/hub, which is where agents and the agent catalogue look).
public static IEndpointRouteBuilder MapBowireHub(this IEndpointRouteBuilder endpoints, string pattern = "/hub")
Parameters
endpointsIEndpointRouteBuilderThe endpoint route builder to attach to.
patternstringThe hub's route prefix.
Returns
- IEndpointRouteBuilder
The same
endpoints, for chaining.