C# 클래스 Headless.Page

The Page class provides the base page logic for interacting with a browser response.
상속: IPage
파일 보기 프로젝트 열기: roryprimrose/Headless

공개 메소드들

메소드 설명
Initialize ( IBrowser browser, HttpResponseMessage response, HttpResult result ) : void
IsOn ( Uri location ) : bool

Determines whether the the page is on the specified location.

ToString ( ) : string

보호된 메소드들

메소드 설명
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.

메소드 상세

Initialize() 공개 메소드

/// 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
리턴 void

Initialize() 보호된 메소드

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. ///
리턴 void

IsOn() 공개 메소드

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. ///
리턴 bool

SetContent() 보호된 추상적인 메소드

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. ///
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string