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