Example #1
0
 protected override void OnBundleStop(IDictionary <string, string> context)
 {
     if (_facade != null)
     {
         _facade.Dispose();
         _facade = null;
     }
 }
Example #2
0
        protected override void OnBundleStart(IDictionary <string, string> context)
        {
            var settings = BuildSettings(context);

            _facade = new UacFacade(settings);

            // 注册接口
            _facade.ComponentsToRegister.ForEach(p => ServiceManager.Current.RegisterInstance(p));
        }