private static void Load() { try { //container = builder.Build(); // IO = EngineContext.Current.Resolve<IMallIO>(); IO = EngineContext.Current.Resolve <IMallIO>(); } catch (Exception ex) { throw new CacheRegisterException("注册缓存服务异常", ex); } //IO = StrategyMgr.LoadStrategy<IMallIO>(); }
static MallIO() { IO = null; Load(); }