public static void Initialize() { ServiceDic = new Dictionary <Type, Type>(); YAssemblyCollection.Add(Assembly.GetExecutingAssembly()); YAssemblyCollection.Initialize(); LoadAllTypes(); IocManager.Instance.IocContainer.Register(Classes.From(YAssembly.ServiceTypes).BasedOn <IApplicationService>().LifestyleTransient()); IocManager.Instance.IocContainer.Register(Classes.From(YAssembly.RepositoryTypes).BasedOn <IRepository>().LifestyleTransient()); }
public static Type GetType(string fullName) { return(YAssemblyCollection.GetType(fullName)); }
public static object CreateInstance(string fullName) { return(YAssemblyCollection.CreateInstance(fullName)); }
public static void Regist(Assembly assembly) { YAssemblyCollection.Add(assembly); }