public IDependencyInjectorEntry Register(object obj) { lock (_lockObject) { var entry = new DependencyInjectionEntry(this, obj.GetType()).AsInstance(obj); _services.Add(entry); return(entry); } }
public IDependencyInjectorEntry Register(Type t) { lock (_lockObject) { var entry = new DependencyInjectionEntry(this, t); _services.Add(entry); return(entry); } }