コード例 #1
0
 public SocketMiddelware(RequestDelegate next, SocketHandeler handeler)
 {
     this.next    = next;
     this.handler = handeler;
 }
コード例 #2
0
 public static IApplicationBuilder MapSockets(this IApplicationBuilder app, PathString path, SocketHandeler socket)
 {
     return(app.Map(path, (x) => x.UseMiddleware <SocketMiddelware>(socket)));
 }