Exemplo n.º 1
0
 public static IApplicationBuilder MapWebSocketChatManager(this IApplicationBuilder app, PathString path, WSHandler handler)
 {
     return(app.Map(path, x => x.UseMiddleware <WSManagerMiddle>(handler)));
 }
Exemplo n.º 2
0
 public WSManagerMiddle(RequestDelegate next, WSHandler wsHandler)
 {
     _next      = next;
     _wsHandler = wsHandler;
 }