AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

DomainLanguageHelper..::..GetDomain Method (SQL, HttpContextWrapper)

Gets the domain for the current request by matching the request URL against configured domain paths. Resolves via GetDomainByPath(String) which returns a per-request clone from the application-level domain cache.

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

Syntax


public static Domain GetDomain(
	SQL currentSQL,
	HttpContextWrapper context
)

Parameters

currentSQL
Type: AdvantageCMS.Data..::..SQL
The current SQL connection.
context
Type: HttpContextWrapper
The HTTP context wrapper.

Return Value

The resolved Domain, or null if no matching domain is found.