-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
AutoConcreteTypeResolution should not consider a primitive type #16
Comments
The func returns How and what does it mean is up to you. |
dadhi, I believe I still need your help. I am running a asp.net core app. I tryed to follow examples around the internet but I am stuck. Btw, I created a bare netcore 2.1 project if you have a moment to take a look. I did try to minimize the code of my app, I just created a new mvc app with individual authentication using netcoreapp2.0. And I've tryed to integrate DryIoc.
It keeps returning "DryIoc.ContainerException: 'Unable to get constructor of Boolean using provided constructor selector when resolving Boolean {ReturnDefault} #101 with args [_String0] Isn't this a problem with the integration? |
Now looking at used setup and exception I have more clues, thanks. What if you remove Any reason you need it? Looking at your example, I have an idea how to improve exception messsge when using Auto resolution. When I have time, I will check more thoroughly. |
Yeah, it seems that was the problem. |
Cool, anyway need to improve some things.
|
After some thoughts, the automatic resolution should not consider a primitive type, like |
…#16 fixed: Test in docs by replacing log4net with Nlog example
Follows the error in the comment,
I suppose that I must register something regarding that function: Func<String, Microsoft.Extensions.Logging.LogLevel, Boolean>. Can you guys provide me some direction? =)
Btw, I am using DryIoc 3.0.2 and DryIoc.Microsoft.DependencyInjection 2.1.0.
// Startup.cs
// IocDiExtensions.cs
// Bootstrap
The text was updated successfully, but these errors were encountered: