/// <summary> /// Invokes the bridge method to return the expected result. /// </summary> /// <param name="page">Address of the HTML page.</param> /// <returns>An entity that represents the HTML page.</returns> public TResult Get(Uri page) { TResult result; var request = HttpWebRequest.Create(page); using (var response = request.GetResponse().GetResponseStream()) { var document = new HtmlDocument(); document.Load(response); result = _bridge.CreateEntity(page, document.CreateNavigator().SelectSingleNode("//head")); response.Close(); } return(result); }