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

            Controlador = socket;
        }