具有 SSL 和线程信息的 WCF 传输安全

发布于 2024-09-29 06:15:06 字数 246 浏览 3 评论 0原文

我对上述主题有疑问。我有一个 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 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文