Skip to content

juner/Prism.Extensions.ServiceCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2903570 · May 25, 2021

History

23 Commits
May 25, 2021
May 25, 2021
May 25, 2021
May 25, 2021
May 25, 2021
Jan 21, 2021
May 25, 2021
Jan 21, 2021
Jan 21, 2021
Mar 2, 2021
May 25, 2021
Mar 2, 2021

Repository files navigation

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());
});
// ...

About

Prism use IServiceCollection Extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages