79437727

Date: 2025-02-13 21:14:07
Score: 2
Natty:
Report link

If I am not mistaken, Transcient are created every GetService() call. Scoped are ThreadStatic (in normal apps), so they are created and exist through a thread's lifetime. However, given that IIS has a pool of application threads, scoped in web is likely per-HTTP request, so likely is implemented via a data slot or saved in the HttpContext.Items collection or as ambient data in Execution context via AsyncLocal.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bugs Bunny