Namespace Arc4u.Dependency.Attribute
Classes
- ExportAttribute
Represents an attribute that indicates a type provides a specific export. This attribute can be used in combination with other attributes to define the export's lifetime:
- SharedAttributeSpecifies that the export will have a singleton lifetime.
- ScopedAttributeSpecifies that the export will have a scoped lifetime.
If neither SharedAttribute nor ScopedAttribute is used, the export will have a transient lifetime.
- ScopedAttribute
Marks a class's lifetime as scoped (one instance by scope).
- SharedAttribute
Marks a class's lifetime as globally shared => singleton.