问题
Simply, what is the difference between HybridHttpOrThreadLocalScoped & HttpContextScoped?
回答1:
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.
来源:https://stackoverflow.com/questions/3014061/what-is-the-difference-between-hybridhttporthreadlocalscoped-httpcontextscoped