Пример #1
0
        public string Parse(string source)
        {
            _dfs.Open(source);
            string data       = _dfs.Read();
            string parsedData = _ps.Parse(data);

            _dfs.Close();
            return(parsedData);
        }
Пример #2
0
        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);
        }