This attribute allows constructor dependencies to be resolved by key. By marking your dependencies with this attribute and associating an attribute filter with your type registration, you can be selective about which service registration should be used to provide the dependency.
Constructors
-
Key
Filter Initializes a new instance of the KeyFilterAttribute class.Attribute(Object)
Methods
-
Resolve
Parameter(Parameter virtual Resolves a constructor parameter based on keyed service requirements.Info, IComponent Context)
Properties
- Key Gets the key the dependency is expected to have to satisfy the parameter.