コード例 #1
0
        protected override void LogPlugError(PlugInErrorLog errorLog)
        {
            if (errorLog.HasError)
            {
                string fileName = Path.Combine(BaseAppSetting.Current.XmlPath, "Dup.xml");
                string content  = errorLog.WriteXml(WriteSettings.Default, QName.ToolkitNoNS);
                FileUtil.SaveFile(fileName, content, WriteSettings.Default.Encoding);
            }
            TimingJobPlugInFactory factory = FactoryManager.GetCodeFactory(
                TimingJobPlugInFactory.REG_NAME).Convert <TimingJobPlugInFactory>();

            factory.FillTimingJobs(Jobs);
        }
コード例 #2
0
        private void ProcessConfigDefaultValue(BaseAppSetting appSetting)
        {
            ConfigTypeFactory typeFactory = FactoryManager.GetCodeFactory(
                ConfigTypeFactory.REG_NAME).Convert <ConfigTypeFactory>();

            Config.RegisterConfig(typeFactory);
            DefaultValueTypeFactory defaultFactory = FactoryManager.GetCodeFactory(
                DefaultValueTypeFactory.REG_NAME).Convert <DefaultValueTypeFactory>();

            DefaultValue.RegisterConfig(defaultFactory);

            ReadDefaultConfig(appSetting);
            ReadConfig(appSetting);
        }