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.
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.