Do ASP.NET Requests always BeginRequest and EndRequest on the same thread?

后端 未结 3 1269
暖寄归人
暖寄归人 2021-01-14 09:48

Does BeginRequest and EndRequest for an ASP.NET HttpApplication always occur on the exact same thread for a given HTTP request from a client?

The reason I ask is tha

3条回答
  •  情话喂你
    2021-01-14 10:12

    The funny thing is I've made this mistake before, so I should know better...but alas.

    ThreadStatic members need to be STATIC. It really should throw a compiler error if it's not...

提交回复
热议问题