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(); }
public static DependencyConfigManager GetDependencyManager(string key = "DependencyItem") { obj = obj ?? new DependencyConfigManager(key); return(obj); }