public CalSocketMiddleware(RequestDelegate next, CalSocketHandler handler) { _next = next; Handler = handler; }
public static IApplicationBuilder MapSockets(this IApplicationBuilder app, PathString path, CalSocketHandler socket) { return(app.Map(path, (p) => p.UseMiddleware <CalSocketMiddleware>(socket))); }