Ejemplo n.º 1
0
 public static IApplicationBuilder MapSockets(this IApplicationBuilder app, PathString path, SocketHandler socket)
 {
     return(app.Map(path, (x) => x.UseMiddleware <SocketMiddleware>(socket)));
 }
Ejemplo n.º 2
0
 public SocketMiddleware(RequestDelegate next, SocketHandler handler)
 {
     _next   = next;
     Handler = handler;
 }