private System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<CtsConfigurationSetting>> GetConfigurationSubSections() { var dictionary = configurationSubSections; if (dictionary == null) { CtsConfigurationSection configurationSection = null; try { configurationSection = System.Configuration.ConfigurationManager.GetSection("CTS") as CtsConfigurationSection; } catch (System.Configuration.ConfigurationErrorsException ex) { this.LogConfigurationErrorEvent(); } CtsConfigurationSetting configurationSetting = null; try { var str = System.Configuration.ConfigurationManager.AppSettings["TemporaryStoragePath"]; if (!string.IsNullOrEmpty(str)) { configurationSetting = new CtsConfigurationSetting("TemporaryStorage"); configurationSetting.AddArgument("Path", str); } } catch (System.Configuration.ConfigurationErrorsException ex) { this.LogConfigurationErrorEvent(); } lock (lockObject) { dictionary = configurationSubSections; if (dictionary == null) { if (configurationSection != null) dictionary = configurationSection.SubSectionsDictionary; else { dictionary = new System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<CtsConfigurationSetting>>(); dictionary.Add(string.Empty, new System.Collections.Generic.List<CtsConfigurationSetting>()); } if (configurationSetting != null) { var local_4 = dictionary[string.Empty]; var local_5 = false; foreach (var item_0 in local_4) { if (string.Equals(item_0.Name, configurationSetting.Name)) { local_5 = true; break; } } if (!local_5) local_4.Add(configurationSetting); } configurationSubSections = dictionary; } } } return dictionary; }
// Token: 0x060010B2 RID: 4274 RVA: 0x00079F0C File Offset: 0x0007810C internal ReportBytes(int expansionSizeLimit, int expansionSizeMultiple) { if (expansionSizeLimit > 0 && expansionSizeMultiple > 0) { this.expansionSizeLimit = expansionSizeLimit; this.expansionSizeMultiple = expansionSizeMultiple; } else { if (!ReportBytes.isReadFromConfiguration) { CtsConfigurationSetting simpleConfigurationSetting = ApplicationServices.GetSimpleConfigurationSetting("TextConverters", "ExpansionSizeLimit"); if (simpleConfigurationSetting != null) { ReportBytes.configExpansionSizeLimit = ApplicationServices.ParseIntegerSetting(simpleConfigurationSetting, 524288, 1, true); } else { ReportBytes.configExpansionSizeLimit = 524288; } simpleConfigurationSetting = ApplicationServices.GetSimpleConfigurationSetting("TextConverters", "ExpansionSizeMultiple"); if (simpleConfigurationSetting != null) { ReportBytes.configExpansionSizeMultiple = ApplicationServices.ParseIntegerSetting(simpleConfigurationSetting, 10, 5, false); } else { ReportBytes.configExpansionSizeMultiple = 10; } ReportBytes.isReadFromConfiguration = true; } this.expansionSizeLimit = ReportBytes.configExpansionSizeLimit; this.expansionSizeMultiple = ReportBytes.configExpansionSizeMultiple; } this.bytesRead = 0L; this.bytesWritten = 0L; }