protected BaseGlobalVariable() { FactoryManager = new PlugInFactoryManager(); CacheManager = new CacheManager(); fPlugInErrorLog = new PlugInErrorLog(); DefaultValue = new ToolkitDefaultValue(); Config = new DefaultToolkitConfig(); InitializeToolkitCore(); }
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); }
protected virtual void LogPlugError(PlugInErrorLog errorLog) { }