Esempio n. 1
0
 public WebSocketMiddleware(RequestDelegate next, WebSocketHandler handler)
 {
     this.next        = next;
     webSocketHandler = handler;
 }
Esempio n. 2
0
 public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder app,
                                                       PathString path,
                                                       WebSocketHandler handler)
 {
     return(app.Map(path, (ap) => ap.UseMiddleware <WebSocketMiddleware>(handler)));
 }