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

ResolvedParameter() and OptionalParameter() ignore name of the dependency #352

Open
ENikS opened this issue Jun 28, 2021 · 0 comments
Open
Assignees
Labels

Comments

@ENikS
Copy link
Contributor

ENikS commented Jun 28, 2021

ResolvedParameter()

ResolvedParameter InjectionMember used to indicate that injected member is resolved from the container. When ResolvedParameter instance is created, designer can specify a whole contract for the dependency, just a type, or just a name. If no contract info is provided and default constructor is used ResolvedParameter() the registration contract is determined from the reflected member info. If member is annotated with [Dependency] attribute, it is used to specify the contract.

Problem

Registration with ResolvedParameter() ignores contract name if the member is annotated with [Dependency] attribute.

@ENikS ENikS added the Bug 🐛 label Jun 28, 2021
@ENikS ENikS self-assigned this Jun 28, 2021
@ENikS ENikS changed the title ResolvedParameter() ignores name of the dependency ResolvedParameter() and OptionalParameter() ignore name of the dependency Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant