예제 #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);
 }