-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Milestone
Description
NamedAttribute is privileged at this point; Keys knows what it is and how to accommodate it. This was done initially to make implementing Stiletto less complicated, but Now is the Right Time to add generalized qualifiers.
For example, instead of [Inject, Named("listen-port")], you could have [Inject, ListenPort]
declared like so:
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter|AttributeTargets.Method)]
public class ListenPortAttribute : QualifierAttribute {}