예제 #1
0
 public static IApplicationBuilder MapaSockets(this IApplicationBuilder aplicacion,
                                               PathString ruta, SocketControlador socket)
 {
     return(aplicacion.Map(ruta, (x) => x.UseMiddleware <SocketMiddleware>(socket)));
 }
예제 #2
0
        public SocketMiddleware(RequestDelegate proximo, SocketControlador socket)
        {
            Proximo = proximo;

            Controlador = socket;
        }