Skip to content

Automatic constructor registration issue #8

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

Open
pnmcosta opened this issue Sep 27, 2019 · 0 comments
Open

Automatic constructor registration issue #8

pnmcosta opened this issue Sep 27, 2019 · 0 comments

Comments

@pnmcosta
Copy link

pnmcosta commented Sep 27, 2019

Hi,

This is not working if you rely on automatic constructor registration, https://unitycontainer.github.io/tutorials/registration/Type/Constructor/automatic.html

I've forked this repo, and updated all the dependencies to Unity 5.11.1 and Logging Abstractions 3.0.0

If you add an empty constructor to the LoggedType in the unit test, and run them, it will fail. Unity is probably not picking up ILogger and ILogger<> as resolvable types.

Is this expected behaviour? Or could something be done about it? Because if you use dependencies that do resolve, it will pick the correct constructor (the one with the most arguments)

Thanks,
P.

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