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