当 AuthenticationService.isLoggedIn()
的结果为真时,如何获取登录用户的名称?
谢谢。
最佳答案
通常我会从 ServiceSecurityContext.Current 中找到 WCF 安全信息。试试 ServiceSecurityContext.Current.PrimaryIdentity
关于c# - 如何从 WCF AuthenticationService 获取用户名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/613989/