Dev2.InterfaceImplementors.FileSystemQuery.GetComputerNamesOnNetwork C# (CSharp) Method

GetComputerNamesOnNetwork() private method

private GetComputerNamesOnNetwork ( string searchPath, List queryCollection ) : List
searchPath string
queryCollection List
return List
        List<string> GetComputerNamesOnNetwork(string searchPath, List<string> queryCollection)
        {
            if(searchPath != null && searchPath.Contains("\\"))
            {
                if(_computerNameCache.Count == 0 || DateTime.Now.Subtract(_gotComputerNamesLast) > _networkQueryTime)
                {
                    _computerNameCache = FindNetworkComputers();
                    _gotComputerNamesLast = DateTime.Now;
                }
                queryCollection = _computerNameCache;
            }
            return queryCollection;
        }