Пример #1
0
 protected override void ConfigureFactory(IFactoryCollection collection)
 {
     collection.AddSingleton <IRepository, UserRepository>();
     collection.AddTransient <IRepositoryConfig, Config>();
 }
Пример #2
0
 protected override void ConfigureFactory(IFactoryCollection collection)
 {
     collection.AddSingleton <InterfaceA, ClassA>();
     collection.AddTransient <InterfaceB, ClassB>();
 }