How can we register IHttpContextAccessor in startup class in asp.net 2.1 core application?

后端 未结 0 2026
伪装坚强ぢ
伪装坚强ぢ 2021-02-12 20:08

We have an application in which User.Identity.Name is null for only one user. I have declared IHttpContextAccessor as static like below.

public static IHttpContex         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题