Exemplo n.º 1
0
        public async Task Invoke(HttpContext httpContext, ICurrentUserService cus, UserManager <ApplicationUser> um)
        {
            if (httpContext.User.Identity.IsAuthenticated)
            {
                ApplicationUser au = await um.FindByIdAsync(httpContext.User.GetUserId());

                await cus.Set(au);
            }
            await _next(httpContext);
        }