public string[] GetAgentsLocations(string[] userIDs) { string[] info = m_localService.GetAgentsLocations(userIDs); if (info == null) { info = m_remoteService.GetAgentsLocations(userIDs); } return(info); }
public string[] GetAgentsLocations(string requestor, string[] userIDs) { string[] info = m_localService.GetAgentsLocations(requestor, userIDs); string[] info2 = m_remoteService.GetAgentsLocations(requestor, userIDs); if (info == null) { info = info2; } else { for (int i = 0; i < userIDs.Length; i++) { if (info[i] == "NotOnline" && info2.Length < i) { info[i] = info2[i]; } } } return(info); }