开发者

C# SeviceSecurityContext.Current is not preseved QueueUserWorkItem

开发者 https://www.devze.com 2023-03-14 17:17 出处:网络
When delegating a thread using ThreadPool.QueueuserWorkItem the ServiceSecurityContext.Current does not persist (returns null).Several of the methods I am calling require that the security context be

When delegating a thread using ThreadPool.QueueuserWorkItem the ServiceSecurityContext.Current does not persist (returns null). Several of the methods I am calling require that the security context be valid prior to returning information.

Is there a way to create a 开发者_Go百科thread that will run with the same security context? Is it possible to allow the current security context to persist or does a thread specific security context need to be setup?

0

精彩评论

暂无评论...
验证码 换一张
取 消