Beispiel #1
0
 public static IApplicationBuilder MapSockets(this IApplicationBuilder app, PathString ps, SocketHandler ws)
 {
     return(app.Map(ps, (x) => x.UseMiddleware <SocketMiddleware>(ws)));
 }
 public SocketHandler(ConnectionHandler connection)
 {
     Connections = connection;
     _get        = this;
 }
Beispiel #3
0
 public SocketMiddleware(RequestDelegate next, SocketHandler ws)
 {
     _next = next;
     _ws   = ws;
 }