// Token: 0x060005A3 RID: 1443 RVA: 0x0001B9C0 File Offset: 0x00019BC0 private static MailboxAssistantsSlaReportLogFactory.MailboxAssistantsSlaReportLog GetLogInstance(string logName, SlaLogType logType, Dictionary <string, MailboxAssistantsSlaReportLogFactory.MailboxAssistantsSlaReportLog> logs) { MailboxAssistantsSlaReportLogFactory.MailboxAssistantsSlaReportLog result; lock (logs) { if (!logs.ContainsKey(logName)) { switch (logType) { case SlaLogType.MailboxSlaLog: logs[logName] = new MailboxAssistantsSlaReportLogFactory.MailboxAssistantsSlaReportLog(logName); break; case SlaLogType.DatabaseSlaLog: logs[logName] = new MailboxAssistantsSlaReportLogFactory.MailboxAssistantsDatabaseSlaLog(logName); break; } } result = logs[logName]; } return(result); }
// Token: 0x060005A1 RID: 1441 RVA: 0x0001B950 File Offset: 0x00019B50 public static MailboxAssistantsSlaReportLogFactory.MailboxAssistantsSlaReportLog GetLogInstance(string logName, SlaLogType logType) { ArgumentValidator.ThrowIfNullOrWhiteSpace("logName", logName); logName = Regex.Replace(logName, "\\s+", string.Empty); switch (logType) { case SlaLogType.MailboxSlaLog: return(MailboxAssistantsSlaReportLogFactory.GetLogInstance(logName, logType, MailboxAssistantsSlaReportLogFactory.mailboxSlaLogs)); case SlaLogType.DatabaseSlaLog: return(MailboxAssistantsSlaReportLogFactory.GetLogInstance(logName, logType, MailboxAssistantsSlaReportLogFactory.databaseSlaLogs)); default: return(null); } }