具有 SSL 和线程信息的 WCF 传输安全
我对上述主题有疑问。我有一个 WCF 服务并为其使用传输安全模型。但是有一些与线程状态相关的机制我无法理解。在我的服务的构造函数中,我尝试设置 Thread.CurrentPrincipal,但在我的服务的被调用方法开始时,Thread.CurrentPrincipal 变为 null...我读到它可以在使用 WCF 传输安全的情况下出现。
是 WCF 传输安全的原因还是有其他原因导致此行为?
提前致谢!如果有一些解释混乱的话,我们深表歉意。
I have a question about the above topic. I have a WCF service and use the Transport security model for it. But there is some mechanism related to the Thread state that I can't understand. In constructor of my service I tried to set the Thread.CurrentPrincipal but at the begin of a called method of my service the Thread.CurrentPrincipal became null... I read that it can be in case of usage WCF Transport Security.
Is the reason in WCF Transport Security or is there any other reason for this behavior?
Thanks in advance! Sorry for confusions in the explanation if there are some.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是否有帮助: http://connect.microsoft.com/VisualStudio/feedback/details/369445/wcf-service-configured-for-transport-security-shouldnt-change-thread-currentprincipal
Does this help: http://connect.microsoft.com/VisualStudio/feedback/details/369445/wcf-service-configured-for-transport-security-shouldnt-change-thread-currentprincipal