Annotations used to make types discoverable by the dependency injection (D.I.) framework. Also provides Annotations that advertise the capabilities of the types.
Annotation Types Summary Annotation Type Description ApplicationScopedIdentifies a type that must be instantiated only one time in the lifetime of an application. OptionalWhen present on a constructor parameter, indicates that the specified dependency is optional. PriorityAnnotates types with a priority value. ProvidesIndicates that a class provides one or more services. RequestScopedIdentifies a type that must be instantiated only one time per scope.