1

Context.User.Identity.GetUserId() 和 Context.User.Identity.Name 在 SignalR 中的 AppHub.cs (Hub) 中返回 null。在此,我在身份框架中使用基于令牌的身份验证。

4

0 回答 0