Closed Mer0winger closed 5 years ago
Not really sure if it is. It was there before I took over. You have a better solution?
You basically cannot avoid having to insert all types if your lifetime manager isn't null. Although I thought this is a definite bug, maybe it was by choice.
They say that although your types are not discoverable for a specific interface, the class itself should be registered in unity as it was requested by the lifetime manager.
Sounds to me like there is a need for an extra parameter here in the function itself (e.g. "register none discoverable types")?
If you could provide a unit test that I can run and if you explain what is wrong with the implementation, I could try to fix it.
Closing for lack of tests
In the RegisterTypes Method there is this else condition bleow which will register any type even if i put FromMatchingInterface to the Method. If the FromMatchingInterface returning Null ( which happens in my App a lot ) anyhow the Method creates a registry entry.
But it should only create a register if for a Class an IClass Interface exists or not ? So if this is not a Bug how can i avoid this RegisterType of Types where no Interface by anming Convention exists ?
br