Beispiel #1
0
 public static IApplicationBuilder UseWebSocketsMiddleware(this IApplicationBuilder builder, WebSocketsHandler handler)
 {
     return(builder.UseMiddleware <WebSocketsMiddleware>(handler));
 }
 public WebSocketsMiddleware(RequestDelegate next, WebSocketsHandler webSocketsHandler)
 {
     _next = next;
     _webSocketsHandler = webSocketsHandler;
 }