Пример #1
0
        public void AppStarted(object application, BaseAppSetting appsetting, BaseGlobalVariable globalVariable)
        {
            TkDebug.ThrowIfNoGlobalVariable();
            EvaluateAdditionPlugInFactory factory = BaseGlobalVariable.Current.FactoryManager.GetCodeFactory(
                EvaluateAdditionPlugInFactory.REG_NAME).Convert <EvaluateAdditionPlugInFactory>();

            factory.Initialize();
        }
Пример #2
0
        public void AppStarted(object application, BaseAppSetting appsetting, BaseGlobalVariable globalVariable)
        {
            string fileName = Path.Combine(appsetting.XmlPath, "AliyunOSS.xml");

            if (File.Exists(fileName))
            {
                AliyunOSSConfigXml xml = new AliyunOSSConfigXml();
                xml.ReadXmlFromFile(fileName);
                AliyunOSSSetting.CreateAliyunOSSSetting(xml);
            }
        }
        public void AppStarted(object application, BaseAppSetting appsetting,
            BaseGlobalVariable globalVariable)
        {
            string path = Path.Combine(appsetting.XmlPath, "weixin.xml");
            if (File.Exists(path))
            {
                WeixinExtraXml xml = new WeixinExtraXml();
                xml.ReadXmlFromFile(path);
                WeixinToolkitSettings.Current = new WeixinToolkitSettings(xml, appsetting);
            }

            RulePlugInFactory factory = globalVariable.FactoryManager.GetCodeFactory(
                RulePlugInFactory.REG_NAME).Convert<RulePlugInFactory>();

            factory.EnumableCodePlugIn(AddCodeRule);
            factory.EnumableXmlPlugIn(AddXmlRule);
        }
        public void AppStarted(object application, BaseAppSetting appsetting,
                               BaseGlobalVariable globalVariable)
        {
            string path = Path.Combine(appsetting.XmlPath, "weixin.xml");

            if (File.Exists(path))
            {
                WeixinExtraXml xml = new WeixinExtraXml();
                xml.ReadXmlFromFile(path);
                WeixinToolkitSettings.Current = new WeixinToolkitSettings(xml, appsetting);
            }

            RulePlugInFactory factory = globalVariable.FactoryManager.GetCodeFactory(
                RulePlugInFactory.REG_NAME).Convert <RulePlugInFactory>();

            factory.EnumableCodePlugIn(AddCodeRule);
            factory.EnumableXmlPlugIn(AddXmlRule);
        }
 public void AppStarting(object application, BaseAppSetting appsetting,
     BaseGlobalVariable globalVariable)
 {
     string path = Path.Combine(appsetting.XmlPath, "weixin.xml");
     if (File.Exists(path))
     {
         WeixinXml xml = new WeixinXml();
         xml.ReadXmlFromFile(path);
         WeixinSettings.Current = new WeixinSettings(xml);
         if (WeixinSettings.Current.Mode == WeixinMode.Normal)
         {
             AccessToken.LoadToken();
             JsAccessToken.LoadToken();
         }
         else
         {
             CorpAccessTokenList.LoadToken();
         }
     }
 }
Пример #6
0
        public void AppStarting(object application, BaseAppSetting appsetting,
                                BaseGlobalVariable globalVariable)
        {
            string path = Path.Combine(appsetting.XmlPath, "weixin.xml");

            if (File.Exists(path))
            {
                WeixinXml xml = new WeixinXml();
                xml.ReadXmlFromFile(path);
                WeixinSettings.Current = new WeixinSettings(xml);
                if (WeixinSettings.Current.Mode == WeixinMode.Normal)
                {
                    AccessToken.LoadToken();
                    JsAccessToken.LoadToken();
                }
                else
                {
                    CorpAccessTokenList.LoadToken();
                }
            }
        }
Пример #7
0
 public void AppStarting(object application, BaseAppSetting appsetting, BaseGlobalVariable globalVariable)
 {
 }
Пример #8
0
 public void AppStarting(object application, BaseAppSetting appsetting, BaseGlobalVariable globalVariable)
 {
     EvaluatorExtension.SetExtension(new EvaluatorExtensionImpl());
 }
 public void AppStarting(object application, BaseAppSetting appsetting,
     BaseGlobalVariable globalVariable)
 {
 }
Пример #10
0
 public void AppStarted(object application, BaseAppSetting appsetting, BaseGlobalVariable globalVariable)
 {
     RedisUtil.CreateCache();
 }