Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Context.User.Identity.GetUserId() 和 Context.User.Identity.Name 在 SignalR 中的 AppHub.cs (Hub) 中返回 null。在此,我在身份框架中使用基于令牌的身份验证。