// Token: 0x060000EB RID: 235 RVA: 0x00006CD0 File Offset: 0x00004ED0 public static LogSearchAppConfig.HealthMonitoringLogAppConfig Load() { LogSearchAppConfig.HealthMonitoringLogAppConfig healthMonitoringLogAppConfig = new LogSearchAppConfig.HealthMonitoringLogAppConfig(); int configInt = LogSearchAppConfig.GetConfigInt("HealthMonitoringLogMaxAgeDays", 1, 128, 2); healthMonitoringLogAppConfig.healthMonitoringLogMaxAge = TimeSpan.FromDays((double)configInt); long num = (long)LogSearchAppConfig.GetConfigInt("HealthMonitoringLogMaxFileSizeMB", 0, 50, 10); healthMonitoringLogAppConfig.healthMonitoringLogMaxFile = num * 1024L * 1024L; long num2 = (long)LogSearchAppConfig.GetConfigInt("HealthMonitoringLogMaxDirectorySizeMB", 0, 102400, 1024); healthMonitoringLogAppConfig.healthMonitoringLogMaxDirectorySize = num2 * 1024L * 1024L; string value = LogSearchAppConfig.GetConfigString("HealthMonitoringLogPath", string.Empty); if (string.IsNullOrEmpty(value)) { string installPath = ConfigurationContext.Setup.InstallPath; if (string.IsNullOrEmpty(installPath)) { LogSearchService.Logger.LogEvent(MSExchangeTransportLogSearchEventLogConstants.Tuple_RegistryExchangeInstallPathNotFound, null, new object[0]); return(null); } value = Path.Combine(installPath, "TransportRoles\\Logs\\HealthMonitoring"); } healthMonitoringLogAppConfig.healthMonitoringLogPath = value; return(healthMonitoringLogAppConfig); }
// Token: 0x060000E2 RID: 226 RVA: 0x00006C30 File Offset: 0x00004E30 public static LogSearchAppConfig.IndexingAppConfig Load() { return(new LogSearchAppConfig.IndexingAppConfig { clusterRange = LogSearchAppConfig.GetConfigInt("ClusterRange", 0, 65536, 4096), refreshInterval = TimeSpan.FromSeconds((double)LogSearchAppConfig.GetConfigInt("RefreshIntervalSeconds", 1, 100, 10)), indexLimitMemoryPercentage = LogSearchAppConfig.GetConfigInt("IndexLimitMemoryPercentage", 0, 100, 5) }); }