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