예제 #1
0
파일: IOC.cs 프로젝트: yiuweiping/orm
        protected IOC(string key)
        {
            this.RegisterCache = new HybridDictionary();
            var di   = DependencyConfigManager.GetDependencyManager();
            var itme = di.GetDependencyItme(key);
            var path = $"{AppDomain.CurrentDomain.BaseDirectory}bin\\{itme.FullName}";

            this._assembly = Assembly.LoadFrom(path);
            this._types    = this.GetTypes(this._assembly);
            this.initialization();
        }
예제 #2
0
 public static DependencyConfigManager GetDependencyManager(string key = "DependencyItem")
 {
     obj = obj ?? new DependencyConfigManager(key);
     return(obj);
 }