コード例 #1
0
 public static IApplicationBuilder MapSokets(this IApplicationBuilder application, PathString path, SocketHandlers socket)
 {
     return(application.Map(path, (x) => x.UseMiddleware <SocketMiddleware>(socket)));
 }
コード例 #2
0
ファイル: SocketMiddleware.cs プロジェクト: Luisfdc/WebChat
 public SocketMiddleware(RequestDelegate next, SocketHandlers handlers)
 {
     _next   = next;
     Handler = handlers;
 }