Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 905 Bytes

File metadata and controls

35 lines (26 loc) · 905 Bytes

Prism.Extensions.ServiceCollection

This is a library for using containers other than Microsoft.Exntesions.DependencyInjection without being affected by the container settings.

add Container.RegisterServices(IServiceCollection) method.

how to use

install DryIoc.Microsoft.DependencyInjection.Extension

Prism.DryIoc

using DryIoc.Microsoft.DependencyInjection.Extension
// ...
Registry.GetContainer().RegisterServices(v =>
{
    v.AddTransient<IA>(v => new A1());
});
// ...

DryIoc

using DryIoc.Microsoft.DependencyInjection.Extension
// ...
Container.RegisterServices(v =>
{
    v.AddTransient<IA>(v => new A1());
});
// ...