Beispiel #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();
            }
        }
Beispiel #2
0
 public Task InvokeAsync(HttpContext context)
 {
     return(middleware.InvokeAsync(context));
 }