예제 #1
0
        public async Task InvokeAsync(HttpContext context)
        {
            if (context.Request.Path.StartsWithSegments(_path))
            {
                context.BindUser();
            }
            await _middleware.InvokeAsync(context);

            if (context.Request.Path.StartsWithSegments(_path))
            {
                context.UnBindUser();
            }
        }
예제 #2
0
 public Task InvokeAsync(HttpContext context)
 {
     return(middleware.InvokeAsync(context));
 }