Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between HybridHttpOrThreadLocalScoped & HttpContextScoped

Simply, what is the difference between HybridHttpOrThreadLocalScoped & HttpContextScoped?

like image 569
AwkwardCoder Avatar asked Jun 10 '10 11:06

AwkwardCoder


1 Answers

HttpContext always uses HttpContext (and fails if not running within a web request). HybridHttpOrThreadLocalScoped uses the HttpContext when available - if not, it falls back to caching per thread.

like image 89
Joshua Flanagan Avatar answered Nov 05 '22 20:11

Joshua Flanagan