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