Enumeration Scope

The supported injection scopes.

Enumeration Members

Enumeration Members

PROTOTYPE: 1

A new instance is created on every injection.

SINGLETON: 0

A single instance of the dependency is created and then cached. So the same instance of the dependency is injected everywhere.