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