I want to create an adapter for Microsoft.Extensions.DependencyInjection to move a Type based registrations to compile-time if possible. For instance, in Asp .Net Core it means that I need to get somehow service collection of ImplementationType
based descriptors at compile-time.
I don't care about run-time descriptors of ImplementationFactory/Instance
, it may be handled by run-time part of container. But Types are known at compile-time, e.g. assemblies are in place and not going to change. Then why not to build/resolve the object-graph for the types at compile-time to speed-up bootstraping time and get a vision on how types are composed.
Btw, the IoC to achieve this is not really important, but I will use DryIocZero/DryIoc