15

Simply, what is the difference between HybridHttpOrThreadLocalScoped & HttpContextScoped?

AwkwardCoder
  • 24,893
  • 27
  • 82
  • 152

1 Answers1

23

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.

Joshua Flanagan
  • 8,527
  • 2
  • 31
  • 40