Class BowireSseExtensions
- Namespace
- Kuestenlogik.Bowire.Protocol.Sse
- Assembly
- Kuestenlogik.Bowire.Protocol.Sse.dll
Extension methods for registering SSE endpoints with Bowire.
public static class BowireSseExtensions
- Inheritance
-
BowireSseExtensions
- Inherited Members
Methods
AddBowireSseEndpoint(IEndpointRouteBuilder, string, string, string?, string?)
Registers an SSE endpoint for Bowire discovery. Call before MapBowire().
public static IEndpointRouteBuilder AddBowireSseEndpoint(this IEndpointRouteBuilder endpoints, string path, string name, string? description = null, string? eventTypes = null)
Parameters
endpointsIEndpointRouteBuilderThe endpoint route builder.
pathstringThe URL path of the SSE endpoint (e.g., "/events/ticker").
namestringDisplay name for the endpoint.
descriptionstringOptional description of what events this endpoint produces.
eventTypesstringOptional comma-separated list of event types.
Returns
- IEndpointRouteBuilder
The endpoint route builder for chaining.