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