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