Exemplo n.º 1
0
        /// <summary>
        /// WEB форма.
        /// </summary>
        /// <param name="result">Результат.</param>
        private WebForm(WebCallResult result)
        {
            Cookies     = result.Cookies;
            OriginalUrl = result.RequestUrl.OriginalString;

            _html = new HtmlDocument();
            result.LoadResultTo(_html);

            _responseBaseUrl = result.ResponseUrl.GetLeftPart(UriPartial.Authority);

            _inputs = ParseInputs();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Из результата.
 /// </summary>
 /// <param name="result">Результат.</param>
 /// <returns>WEB форма.</returns>
 public static WebForm From(WebCallResult result)
 {
     return(new WebForm(result));
 }