Skip to content

Service Container

Nidkfr edited this page Jun 6, 2018 · 1 revision

Service Container:

Shiva implement a IOC generic. We may create a custom version for IOC of market like simpleinjector, ninject,ect...

  • functionnality:
    • Register Type
    • Register Type Initializer
    • Register Factory
    • Register scope : Transient , singleton

we are made simple injector implementation.

Exemple:

using SimpleInjector;
using Shiva.Core.Ioc;

var instance = new SimpleInjectorServiceContainer(new Container());
instance.Register<ILogManager, Log4NetLogManager>();

go to home...

Clone this wiki locally