public static IApplicationBuilder MapBroadcaster(this IApplicationBuilder app, PathString path, WebsocketConsoleHandler handler) { return(app.Map(path, (_app) => _app.UseMiddleware <Middleware>(handler))); }
public Middleware(RequestDelegate next, WebsocketConsoleHandler webSocketHandler) { _logger.Info("ws console middleware engaged"); _next = next; _webSocketHandler = webSocketHandler; }