-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Suggestion] Create extension using Microsoft.Extensions.DependencyInjection.Abstractions #2
Comments
Agreed |
I'm currently working on a solution for this, but i hit some conceptual problems I can't seem to solve. Working but not ideal solution Not working solution, seems ideal but don't understand the problem. When I try to register a service which is registered with an implementation factory i hit a binding assert stating: Expected type 'object' to derive from type 'IExampleInterface' I know the registration is working, im experimenting with a service collection which is already working in a wpf application where we just use the IServiceProvider. Any idea how to solve this? I don't really understand why this happens with from method.
Which did not help either and produced the same error message |
It would be nice if we could create an Adaptor or Extension for Extenject that extends the Microsoft.Extensions.DependencyInjection.Abstractions lib. That way, we can rely on an abstracted DIContainer rather than binding our game projects directly to Extenject. However, I appreciate there's a lot of Unity specific things in Extenject.
Other DI's have done this, so I'm sure it's possible. Please see: https://github.com/aspnet/Extensions/tree/master/src/DependencyInjection
The text was updated successfully, but these errors were encountered: