I have a custom implementation of IUserStore because I want to use my repository layer. All of my database tables stores the user’s name who inserted or last updated the row. I get user name from HttpContext.Current, which works well, except when repository is called via UserManager, I get null in HttpContext.Current. When my own business layer call the repository everything works well. (I am using async version of methods.)

Have anybody an idea what happening in UserManager, why losing current httpcontext?

Thx Attila

Related posts

Recent Viewed