Beispiel #1
0
 public AbstractWebSocketConnection(AbstractWebSocketHandler handler)
 {
     Handler = handler;
 }
Beispiel #2
0
 public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder app, PathString path, AbstractWebSocketHandler handler)
 {
     return(app.Map(path, (_app) => _app.UseMiddleware <WebSocketMiddleware>(handler)));
 }
Beispiel #3
0
 public WebSocketMiddleware(RequestDelegate next, AbstractWebSocketHandler webSocketHandler)
 {
     _next             = next;
     _webSocketHandler = webSocketHandler;
 }