Skip to content

VitreousDevUIMiddleware class

Namespace: Vitreous.DevUI.Middleware
Assembly: Vitreous.DevUI.dll

ASP.NET Core middleware that serves the Vitreous Developer UI. Mounts these endpoints under the configured path prefix (default /vitreous):

  • GET /vitreous — serves the embedded single-file HTML UI.
  • GET /vitreous/events — SSE stream of live [ExecutionTrace](/Vitreous/api/vitreous/devui/tracing/executiontrace/) events.
  • GET /vitreous/api/traces — JSON snapshot of the current ring buffer (for initial load).
  • GET /vitreous/api/config — settings the UI needs.

Prefer MapVitreousDevUI(), which supports endpoint conventions such as RequireAuthorization().

public sealed class VitreousDevUIMiddleware

object ← VitreousDevUIMiddleware

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

VitreousDevUIMiddleware(RequestDelegate, TraceStore, SseConnectionManager, DevUISerializer, VitreousDevUIOptions)

Section titled “ VitreousDevUIMiddleware(RequestDelegate, TraceStore, SseConnectionManager, DevUISerializer, VitreousDevUIOptions)”
public VitreousDevUIMiddleware(RequestDelegate next, TraceStore store, SseConnectionManager sse, DevUISerializer serializer, VitreousDevUIOptions options)

next RequestDelegate

store TraceStore

sse SseConnectionManager

serializer DevUISerializer

options VitreousDevUIOptions

public Task InvokeAsync(HttpContext context)

context HttpContext

Task