YairHalberstadt / stronginject

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

Allow internal types, factories, and modules, to be registered with internal modules and containers #97

Closed YairHalberstadt closed 3 years ago

YairHalberstadt commented 3 years ago

Currently internal types cannot be registered at all with modules. This is because modules can be used by containers outside the current assembly, and code generation can not generate code to instantiate internal types outside their declaring assembly.

This is a significant limitation. At the very least we should allow these to be registered with internal modules and containers. Whilst it makes sense to want to allow this on public containers, containers are also modules so I'm not sure whether this will work well.

YairHalberstadt commented 3 years ago

Done in https://github.com/YairHalberstadt/stronginject/pull/98