Пример #1
0
 public IDependencyInjectorEntry Register(object obj)
 {
     lock (_lockObject)
     {
         var entry = new DependencyInjectionEntry(this, obj.GetType()).AsInstance(obj);
         _services.Add(entry);
         return(entry);
     }
 }
Пример #2
0
 public IDependencyInjectorEntry Register(Type t)
 {
     lock (_lockObject)
     {
         var entry = new DependencyInjectionEntry(this, t);
         _services.Add(entry);
         return(entry);
     }
 }