I use DNX and the default Microsoft.Extensions.DependencyInjection.ServiceProviderfor DI.
I use Ninject if, if I have not registered a service, it by default uses the service type as the implementation type, for example. if I have not registered MyService, and I ask the container for the instance MyService(or is it a constructor parameter), it uses it MyServiceas the type of implementation.
Is there a way to tune Microsoft.Extensions.DependencyInjection.ServiceProviderbehavior similarly? I would like to create an instance Transientfor something unregistered.
source
share