public string Parse(string source) { _dfs.Open(source); string data = _dfs.Read(); string parsedData = _ps.Parse(data); _dfs.Close(); return(parsedData); }
public int GetUpServiceCount(string source) { Random rnd = new Random(); int upCount = rnd.Next(1, 100); _dfs.Open(source); string data = _dfs.Read(); _dfs.Close(); Console.WriteLine("Number of services that are up: " + upCount); return(upCount); }