C# Class Open.Core.Web.ServerExtensions

显示文件 Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
IsLocalHost ( this request ) : bool

Determines whether the application is running on the 'localhost' domain.

PrependDomain ( this urlPath ) : string

Prepends the server name to the given url.

Method Details

IsLocalHost() public static method

Determines whether the application is running on the 'localhost' domain.
public static IsLocalHost ( this request ) : bool
request this The HTTP request to examine.
return bool

PrependDomain() public static method

Prepends the server name to the given url.
public static PrependDomain ( this urlPath ) : string
urlPath this The URL path to prepend.
return string