예제 #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();
        }
예제 #2
0
 /// <summary>
 /// Из результата.
 /// </summary>
 /// <param name="result">Результат.</param>
 /// <returns>WEB форма.</returns>
 public static WebForm From(WebCallResult result)
 {
     return(new WebForm(result));
 }