Qualifies a class or an injected parameter with a name.
On a class, the name is used when registering that class with the container.
On a parameter, the name selects a named registration or alias during injection.
This is useful when multiple registrations exist for the same token.
Qualifies a class or an injected parameter with a name.
On a class, the name is used when registering that class with the container. On a parameter, the name selects a named registration or alias during injection.
This is useful when multiple registrations exist for the same token.
Example: