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