Пример #1
0
        public async Task <IResult <List <ChordsLink> > > GrabLinks(string query)
        {
            var searchUrl = new Uri(_mychordsUrl, $"/search?q={query}");
            var page      = await _webPageLoader.Load(searchUrl);

            return(page.Bind(ToSafe(ExtractLinks)));
        }
Пример #2
0
        private string GetFromHttp(string url)
        {
            var content = _webPageLoader.Load(url);

            _cache[url] = content;
            return(content);
        }