AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

DomainLanguageHelper..::..GetCurrentHost Method (HttpContextWrapper)

Returns the current request's host (including non-default port) for the supplied HttpContextWrapper.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string GetCurrentHost(
	HttpContextWrapper context
)

Parameters

context
Type: HttpContextWrapper
The HTTP context wrapper whose request host is returned.

Return Value

The host portion of the request URL, with :port appended when non-default.