You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an error when I use the unity.configuration that I can't reproduce without the configuration,
I have Interfaces IRepository and IRule
and the Repository class receives an IEnumerable<IRule in the constructor
If I use the unity.config file to register those registrations, I get an error in the resolve of the IRepository.
But if I register by code, I can't reproduce the error, I think that something is missing in the registration, but I can't find what it is.
I tryed to find the most detailed information to help you in this problem, but I don't think that I can solve this because I don't know what those differences in the registration mean.
I think that this error should remain in the radar, but I found a way to solve it in my project.
Thanks
ENikS
transferred this issue from unitycontainer/unity
Dec 3, 2018
I'm trying to help with this issue, but I just hit a dead end here and could use some help.
I didn't find in the unity configuration project where it uses the Unity.Policy.IConstructorSelectorPolicy
Looks like the configuration goes to some Obsolete classes.
Looks like is something about the TypeResolverImpl
It's not clear where this happens.
If @ENikS give me some directions I could help out with this issue
Description
I have an error when I use the unity.configuration that I can't reproduce without the configuration,
I have Interfaces IRepository and IRule
and the Repository class receives an IEnumerable<IRule in the constructor
If I use the unity.config file to register those registrations, I get an error in the resolve of the IRepository.
But if I register by code, I can't reproduce the error, I think that something is missing in the registration, but I can't find what it is.
To Reproduce
Please provide UnitTest in the form of:
Additional context
<unity xmlns="http://schemas.microsoft.com/practices/2010/unity"> <container> <register type="ErroUnityGeneric.IRepository
1, ErroUnityGeneric"mapTo="ErroUnityGeneric.Repository`1, ErroUnityGeneric"
name="">
`
The text was updated successfully, but these errors were encountered: