コード例 #1
0
        private void AppendResult(IQuery query, Column column)
        {
            var newResult        = new ResultExpr(column);
            var addResultVisitor = new AddResultVisitor(newResult);

            query.Accept(addResultVisitor);
        }
コード例 #2
0
 public static IQuery <HttpFetch <ParsedHtml> > Html(this IQuery <HttpFetch <HttpContent> > query) =>
 from fetch in query.Accept(MediaTypeNames.Text.Html)
 from hps in Query.GetService <IHtmlParser>()
 select fetch.WithContent(hps.Parse(fetch.Content.ReadAsStringAsync().Result, fetch.RequestUrl));