Esempio n. 1
0
        public IEnumerable <string> Read(string path)
        {
            var response = httpClient.GetAsync(path).Result;
            var stream   = response.Content.ReadAsStreamAsync().Result;

            return(streamReader.ReadByline(stream));
        }
Esempio n. 2
0
        public IEnumerable <string> Read(string path)
        {
            if (!File.Exists(path))
            {
                throw Exceptions.FileNotFound(path);
            }

            return(streamReader.ReadByline(new FileStream(path, FileMode.Open)));
        }