Service Lifetime

noun

say it: “SER-vis LYFE-tym” /ˈsɜːrvɪs ˈlaɪftaɪm/

How long a registered service object lives: transient (each time), scoped (per request) or singleton (whole app).

What is Service Lifetime?

A service lifetime says how long one instance lives: transient (new every time), scoped (one per request) or singleton (one for the whole app).

In a sentence

  • “The clock's service lifetime is singleton, because one clock is enough for the app.”

Level: Apprentice · More ASP.NET Core terms at this level

Updated

In other subjects