Replace Ninject with Simple Injector

后端 未结 1 395
有刺的猬
有刺的猬 2020-12-30 16:03

I\'ve used Ninject for my application. Ninject is really simple and easy to learn, but its quite slow and I try to use another IoC to compare if its faster as with Ninject.<

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-30 16:24

    This Ninject registration roughly translates to the following Simple Injector registration:

    container.Register();
    container.RegisterCollection(MapperRegistry.AllMappers());
    container.RegisterSingleton();
    container.RegisterSingleton();
    container.Register();
    

    0 讨论(0)
提交回复
热议问题