Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying injection member via optional attribute #3

Open
drewnoakes opened this issue Aug 31, 2016 · 0 comments
Open

Allow specifying injection member via optional attribute #3

drewnoakes opened this issue Aug 31, 2016 · 0 comments

Comments

@drewnoakes
Copy link
Member

Add attribute [Injection], allowing specific delegation for Servant's construction purposes of the factory or constructor to use for instantiating the containing type. The attribute may only be used once within a type, and is only valid on constructors and static methods. Perhaps allow overload resolution, using name for factory method, but unfortunately this is trickier for constructors where you'd have to specify the types of arguments. The [Injection] attribute is also attributed with ReSharper's [MeansImplicitUse].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant