public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder app,
                                                       PathString path,
                                                       WebSocketHandler handler)
 {
     return(app.Map(path, ab => ab.UseMiddleware <WebSocketManagerMiddleware>(handler)));
 }
Exemplo n.º 2
0
 public WebSocketManagerMiddleware(RequestDelegate next,
                                   WebSocketHandler webSocketHandler)
 {
     _next             = next;
     _webSocketHandler = webSocketHandler;
 }