protected override void OnBundleStop(IDictionary <string, string> context) { if (_facade != null) { _facade.Dispose(); _facade = null; } }
protected override void OnBundleStart(IDictionary <string, string> context) { var settings = BuildSettings(context); _facade = new UacFacade(settings); // 注册接口 _facade.ComponentsToRegister.ForEach(p => ServiceManager.Current.RegisterInstance(p)); }