示例#1
0
 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());
 }
示例#2
0
 public static Type GetType(string fullName)
 {
     return(YAssemblyCollection.GetType(fullName));
 }
示例#3
0
 public static object CreateInstance(string fullName)
 {
     return(YAssemblyCollection.CreateInstance(fullName));
 }
示例#4
0
 public static void Regist(Assembly assembly)
 {
     YAssemblyCollection.Add(assembly);
 }