C# Class Headless.Page

The Page class provides the base page logic for interacting with a browser response.
Inheritance: IPage
Afficher le fichier Open project: roryprimrose/Headless

Méthodes publiques

Méthode Description
Initialize ( IBrowser browser, HttpResponseMessage response, HttpResult result ) : void
IsOn ( Uri location ) : bool

Determines whether the the page is on the specified location.

ToString ( ) : string

Méthodes protégées

Méthode Description
Initialize ( IBrowser browser, HttpStatusCode statusCode, string statusDescription, HttpResult result ) : void

Initializes the page with the specified values.

SetContent ( HttpContent content ) : void

Sets the content of the page from the specified content.

Method Details

Initialize() public méthode

/// The parameter is null. /// /// The parameter is null. /// /// The parameter is null. ///
public Initialize ( IBrowser browser, HttpResponseMessage response, HttpResult result ) : void
browser IBrowser
response System.Net.Http.HttpResponseMessage
result HttpResult
Résultat void

Initialize() protected méthode

Initializes the page with the specified values.
protected Initialize ( IBrowser browser, HttpStatusCode statusCode, string statusDescription, HttpResult result ) : void
browser IBrowser /// The browser. ///
statusCode HttpStatusCode /// The status code. ///
statusDescription string /// The status description. ///
result HttpResult /// The result. ///
Résultat void

IsOn() public méthode

Determines whether the the page is on the specified location.
/// The parameter is null. /// /// The parameter is a relative location. ///
public IsOn ( Uri location ) : bool
location System.Uri /// The current location. ///
Résultat bool

SetContent() protected abstract méthode

Sets the content of the page from the specified content.
protected abstract SetContent ( HttpContent content ) : void
content System.Net.Http.HttpContent /// The HTTP response content. ///
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string