private string GetUserName(string debugHistoryPath, string correlationId) { var file = DirectoryHelper.GetFiles(debugHistoryPath).FirstOrDefault(a => a.Contains(correlationId)); if(file != null) return file.Split('_').Last(); return ""; }