YairHalberstadt / stronginject

compile time dependency injection for .NET
MIT License
845 stars 24 forks source link

Warning Resolving all registration of type 'object', but there are no such registrations #121

Closed trampster closed 3 years ago

trampster commented 3 years ago

I'm getting this as a warning, but I don't know what it means or why I am getting it, as far as I can tell I don't have any constructors taking object.

YairHalberstadt commented 3 years ago

You're getting this if you're resolving an array of objects, but you've never registered anything as an object.

trampster commented 3 years ago

I discovered that I did have a dependency on a array of object (defined using param object[]) so it was hard to see in my existing IoC.