DomainLanguageHelper..::..GetDomain Method (HttpContextWrapper, SQL, String)
Resolves a domain by database lookup against the supplied host, bypassing the in-memory
domain map. Intended for call-sites where HttpContext is null or
the cache must be skipped.
Namespace:
AdvantageCMS.Core.UtilsAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
public static Domain GetDomain( HttpContextWrapper context, SQL currentSQL, string requestHost )
Parameters
- context
- Type: HttpContextWrapper
The HTTP context wrapper used to short-circuit during safe-redirect flows and to drive the Coming Soon fallback on database failures. May be null.
- currentSQL
- Type: AdvantageCMS.Data..::..SQL
The SQL connection used for database access; timeout is temporarily overridden to 10 seconds for the lookup, then restored.
- requestHost
- Type: String
The request host (e.g., www.example.com:8080) to resolve.

