private static LogSource DetermineLogSource(string logContent) { if (LogParseStrategyMsSql.IsLogFormatValid(logContent)) { return(LogSource.MsSql); } else if (LogParseStrategyNcsa.IsLogFormatValid(logContent)) { return(LogSource.Ncsa); } else if (LogParseStrategySplunk.IsLogFormatValid(logContent)) { return(LogSource.Splunk); } throw new LogSourceNotSupportedException("The Log Content provided is not an expected Log Source format"); }