C# Class JustPressPlay.Utilities.JppUriInfo

Mostra file Open project: RIT-MAGIC/JustPressPlay

Public Methods

Method Description
GetAbsoluteUri ( System.Web.HttpRequestBase request, string relativePath ) : string

Converts a relative URI to an absolute one (i.e. replaces ~ with domain name)

GetCurrentDomain ( System.Web.HttpRequestBase request ) : string

Gets the current website's domain name.

Method Details

GetAbsoluteUri() public static method

Converts a relative URI to an absolute one (i.e. replaces ~ with domain name)
public static GetAbsoluteUri ( System.Web.HttpRequestBase request, string relativePath ) : string
request System.Web.HttpRequestBase An HTTP request object
relativePath string The relative path to convert
return string

GetCurrentDomain() public static method

Gets the current website's domain name.
public static GetCurrentDomain ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase An HTTP request object (in controllers, this is just Request)
return string