singleton

A service lifetime, or design, in which one instance is created and shared for the whole life of the process.

In more detail

In dependency injection it is registered with AddSingleton. Because many requests use it at once, a singleton must be thread-safe and must not hold per-request or per-customer state or a scoped service.

Related terms

Taught in

References