public void RegisterFactory <TInterface, TClass>(Func <IContainer, TClass> factory) where TClass : TInterface { IInjectionFactory <TClass> objectFactory = new InjectionFactory <TClass>(factory); _factories.Add(typeof(TInterface), objectFactory); }
public void RegisterFactory <TClass>(Func <IContainer, TClass> factory) { IInjectionFactory <TClass> objectFactory = new InjectionFactory <TClass>(factory); _factories.Add(typeof(TClass), objectFactory); }