Saturday, November 12, 2005

Thread.CurrentPrincipal in .NET Framework 2.0

Thread.CurrentPrincipal is simply a helpful property for keeping track of a principal, and is primarily used in server applications to track client identity. As Keith Brown pointed out that
Thread.CurrentPrincipal propagates during asynchronous activities such as asynchronous delegates and creating new threads, but doesn't propagate during ThreadPool.QueueUserWorkItem and System.Threading.Timer, in .NET Framework 1.1.

I found that
Thread.CurrentPrincipal propagates during
ThreadPool.QueueUserWorkItem in .NET Framework 2.0.


Post a Comment

<< Home