title: Is it safe to store an ObjectContext in a thread static variable in ASP.NET?
body: <p>I've read that I should store an <code>ObjectContext</code> in <code>HttpContext.Current</code> in order to share my <code>ObjectContext</code> across different services/repositories that are called in a request. I'm wondering if it is safe to use an <code>ObjectContext</code> with the <code>[ThreadStatic]</code> attribute on a <code>static</code> class variable instead. Is that a safe thing to do? Is each request processed in its own thread?</p>