public void Register <TI, T>(ObjectLifeTime lifetime = ObjectLifeTime.Transient) where T : class, TI { _typeMappings[typeof(TI)] = new Tuple <Type, ObjectLifeTime>(typeof(T), lifetime); }
public void Register <TI>(string classType, ObjectLifeTime lifetime = ObjectLifeTime.Transient) { var t2 = Assembly.GetExecutingAssembly().GetType(classType); _typeMappings[typeof(TI)] = new Tuple <Type, ObjectLifeTime>(t2, lifetime); }