This is a library for using containers other than Microsoft.Exntesions.DependencyInjection
without being affected by the container settings.
add Container.RegisterServices(IServiceCollection)
method.
install DryIoc.Microsoft.DependencyInjection.Extension
using DryIoc.Microsoft.DependencyInjection.Extension
// ...
Registry.GetContainer().RegisterServices(v =>
{
v.AddTransient<IA>(v => new A1());
});
// ...
using DryIoc.Microsoft.DependencyInjection.Extension
// ...
Container.RegisterServices(v =>
{
v.AddTransient<IA>(v => new A1());
});
// ...