Is there a way to new up an arbitrary class by type (i.e. Activator.CreateInstance(myType) and have the .Net DI engine inject the dependencies for that type? I don't want to register instances of myType and myType can be any random type. I just want to be able to handle cases like:
myType(IServiceProvider serviceProvider) and have the DI inject the dependencies as expected. Doesn't happen through Activator obviously.