Exemple #1
0
 public static IApplicationBuilder MapSocketsMiddleware(this IApplicationBuilder app, PathString path, SocketsHandler handler)
 {
     return(app.Map(path, (app) => app.UseMiddleware <SocketsMiddleware>(handler)));
 }
Exemple #2
0
 public SocketsMiddleware(RequestDelegate next, SocketsHandler socketsHandler)
 {
     _next           = next;
     _socketsHandler = socketsHandler;
 }