-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
GetResolver is only called on first resolve #2
Comments
Any fix for this? |
This approach has worked for me:
|
I can confirm that this works like a charm and created a PR that is a bit less changing than what you suggested KifKot. Thanks for solving that issue! |
janschreier
added a commit
to janschreier/NLog
that referenced
this issue
Feb 18, 2020
Solves Issue 2 unitycontainer#2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I hope I understood the meaning of this extension correctly. I would expect to get a different logger for every class that is resolved and needs an ILogger. Currently only the first resolve leads to a new ILogger-object which is passed to all other classes that also need an ILogger.
From my understanding the following test should result in two different loggerinstances but the test fails as they are the same (just paste it into the existing test class, I was unsure if I should have made this a pull-request since I could not provide a solution):
I hope I made this issue clear enough as I am fairly new to Unity.
The text was updated successfully, but these errors were encountered: