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/agentsregister or heartbeat — idempotent on (serviceName, instanceId); answers the agent's id
GET /hub/agentsevery known agent with lastSeen and live
GET /hub/agents/cataloguethe 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

endpoints IEndpointRouteBuilder

The endpoint route builder to attach to.

pattern string

The hub's route prefix.

Returns

IEndpointRouteBuilder

The same endpoints, for chaining.