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.
如何使用标准 WebSocketContext/HttpListenerContext 以安全的方式区分用户?我曾尝试获取 httpListenerContext.User.Identity.Name 但由于某种原因它会引发异常。