AmosFiveSix.com

Experience, Knowledge, Creativity

  • Increase font size
  • Default font size
  • Decrease font size
Home Blog .Net ThreadStatic and Thread Local Storage in .Net

ThreadStatic and Thread Local Storage in .Net

E-mail Print PDF
ThreadStatic Attribute
http://msdn.microsoft.com/en-us/library/h3811ycd.aspx

Thread Local Storage: Thread-Relative Static Fields and Data Slots
http://msdn.microsoft.com/en-us/library/6sby1byh.aspx


Stack Overflow: How does the ThreadStatic attribute work?
http://stackoverflow.com/questions/5227676/how-does-the-threadstatic-attribute-work

A tale of two techniques: The [ThreadStatic] Attribute and System.Web.HttpContext.Current.Items
http://www.hanselman.com/blog/ATaleOfTwoTechniquesTheThreadStaticAttributeAndSystemWebHttpContextCurrentItems.aspx

ThreadStatic, CallContext and HttpContext in ASP.Net
http://piers7.blogspot.com/2005/11/threadstatic-callcontext-and_02.html

log4net Context problems with ASP.Net thread agility
http://piers7.blogspot.com/2005/12/log4net-context-problems-with-aspnet.html


Is there any way to imitate ThreadStatic for use with HttpContext.Current.Items?
http://stackoverflow.com/questions/6122034/is-there-any-way-to-imitate-threadstatic-for-use-with-httpcontext-current-items

AdaptiveContext.cs from n2cms
http://code.google.com/p/n2cms/source/browse/trunk/src/N2/Web/AdaptiveContext.cs

ThreadContext.cs from n2cms
http://code.google.com/p/n2cms/source/browse/trunk/src/N2/Web/ThreadContext.cs

WebRequestContext.cs from n2cms
http://code.google.com/p/n2cms/source/browse/trunk/src/N2/Web/WebRequestContext.cs