Class BowireGitWorkspaceEndpoints

Namespace
Kuestenlogik.Bowire.Workspace.Git
Assembly
Kuestenlogik.Bowire.Workspace.Git.dll

Endpoint surface for the git-backed workspace runtime — currently just the FS-watch SSE stream (#150). Hosts that called AddBowireGitWorkspace(IServiceCollection) at DI build call MapBowireGitWorkspaceEvents(IEndpointRouteBuilder, string) at endpoint-routing setup to mount the route.

public static class BowireGitWorkspaceEndpoints
Inheritance
BowireGitWorkspaceEndpoints
Inherited Members

Remarks

Kept in a dedicated extension class so callers can mount the runtime selectively — embedded hosts that want the watcher behind their own auth gate can wrap the route group themselves.

Methods

MapBowireGitWorkspaceEvents(IEndpointRouteBuilder, string)

Map GET {basePath}/api/workspace/events?storageRoot=<path> — server-sent events for FileSystemWatcher activity under the workspace's storageRoot. One subscription per connected client; each gets its own debounced event queue. The route streams indefinitely; clients close by disconnecting (the browser's EventSource does this naturally on tab close).

public static IEndpointRouteBuilder MapBowireGitWorkspaceEvents(this IEndpointRouteBuilder endpoints, string basePath)

Parameters

endpoints IEndpointRouteBuilder
basePath string

Returns

IEndpointRouteBuilder