public WebSocketManagerMiddleware(RequestDelegate next, WebSocketHandler webSocketHandler) { _next = next; _webSocketHandler = webSocketHandler; }
public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder app, PathString path, WebSockets.WebSocketHandler handler) { return(app.Map(path, (_app) => _app.UseMiddleware <WebSockets.WebSocketManagerMiddleware>(handler))); }