public IdpeConfigurationSectionEditable(Configuration configuration) : base(configuration) { IdpeConfigurationSection idpeSection = (IdpeConfigurationSection)configuration.GetSection("idpeConfigurationSection"); PullersEnabled = idpeSection.PullersEnabled; TimeOut = idpeSection.TimeOut; WorkerTimeOut = idpeSection.WorkerTimeOut; LocalFileWatcherEnabled = idpeSection.LocalFileWatcher.Enabled; BaseDirectory = idpeSection.LocalFileWatcher.BaseDirectory; RetryTimeOut = idpeSection.LocalFileWatcher.RetryTimeOut; MicrosoftExcelOLEDataReaderEnabled = idpeSection.MicrosoftExcelOLEDataReader.Enabled; MicrosoftExcelOLEProvider = idpeSection.MicrosoftExcelOLEDataReader.Provider; MicrosoftExcelOLEVersion = idpeSection.MicrosoftExcelOLEDataReader.Version; TrackingEnabled = idpeSection.Tracking.Enabled; PerformanceCounter = idpeSection.Tracking.PerformanceCounter; SilientBusinessRuleError = idpeSection.Tracking.SilientBusinessRuleError; UpdateMatrix = idpeSection.Tracking.UpdateMatrix; UpdateMatrixFormat = idpeSection.Tracking.UpdateMatrixFormat; }
public void Save(Configuration configuration) { base.Save(configuration); IdpeConfigurationSection idpeSection = (IdpeConfigurationSection)configuration.GetSection("idpeConfigurationSection"); idpeSection.PullersEnabled = PullersEnabled; idpeSection.TimeOut = TimeOut; idpeSection.WorkerTimeOut = WorkerTimeOut; idpeSection.LocalFileWatcher.Enabled = LocalFileWatcherEnabled; idpeSection.LocalFileWatcher.BaseDirectory = BaseDirectory; idpeSection.LocalFileWatcher.RetryTimeOut = RetryTimeOut; idpeSection.MicrosoftExcelOLEDataReader.Enabled = MicrosoftExcelOLEDataReaderEnabled; idpeSection.MicrosoftExcelOLEDataReader.Provider = MicrosoftExcelOLEProvider; idpeSection.MicrosoftExcelOLEDataReader.Version = MicrosoftExcelOLEVersion; idpeSection.Tracking.Enabled = TrackingEnabled; idpeSection.Tracking.PerformanceCounter = PerformanceCounter; idpeSection.Tracking.SilientBusinessRuleError = SilientBusinessRuleError; idpeSection.Tracking.UpdateMatrix = UpdateMatrix; idpeSection.Tracking.UpdateMatrixFormat = UpdateMatrixFormat; configuration.Save(); }