AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

DomainLanguageHelper Members

The DomainLanguageHelper type exposes the following members.

Methods


  Name Description
Public method Static member GetCurrentHost(HttpContext)
Gets the current host.
Public method Static member GetCurrentHost(HttpContextWrapper)
Returns the current request's host (including non-default port) for the supplied HttpContextWrapper.
Public method Static member GetCurrentHost(HttpRequest)
Gets the current host.
Public method Static member GetCurrentHost(HttpRequestBase)
Returns the current request's host (including non-default port) for the supplied HttpRequestBase.
Public method Static member GetCurrentHost(IOwinContext)
Gets the current host.
Public method Static member GetCurrentUrlRoot(HttpContext)
Gets the current URL root (host and optional virtual path) for the request.
Public method Static member GetCurrentUrlRoot(HttpContextWrapper)
Gets the current URL root.
Public method Static member GetCurrentUrlRoot(IOwinContext)
Gets the current URL root.
Public method Static member GetDefaultDomain
Returns the framework's default Domain: the lowest-DomainID active domain, falling back to the lowest-DomainID domain unconditionally if none are active. Used as the safety-net resolution when no domain matches the current request.
Public method Static member GetDefaultLangaugeByHostHeader(Domain, HttpContext, List<(Of <<'(Language>)>>))
Gets the default langauge by host header.
Public method Static member GetDefaultLangaugeByHostHeader(Domain, HttpContextWrapper, List<(Of <<'(Language>)>>))
Gets the default langauge by host header.
Public method Static member GetDefaultLangaugeByHostHeader(Domain, IOwinContext, List<(Of <<'(Language>)>>))
Gets the default langauge by host header.
Public method Static member GetDefaultLanguage
Returns the framework's default Language for the given domain: the primary active language (IsPrimary == true), falling back to the lowest-ID active language of the domain. Used as the safety-net resolution when language can't be resolved by cookie/parameter/slug.
Public method Static member GetDomain(SQL, HttpContext)
Gets the domain.
Public method Static member GetDomain(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.
Public method Static member GetDomain(SQL, IOwinContext)
Gets the domain.
Public method Static member GetDomain(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.
Public method Static member GetDomainById
Gets the domain by identifier.
Public method Static member GetHost
Gets the host.
Public method Static member GetLanguage(SQL, Domain, HttpContext)
Gets the language.
Public method Static member GetLanguage(SQL, Domain, HttpContextWrapper)
Gets the language.
Public method Static member GetLanguage(SQL, Domain, String, HttpContext)
Gets the language.
Public method Static member GetLanguage(SQL, Domain, String, HttpContextWrapper)
Gets the language.
Public method Static member GetLanguage(SQL, Domain, String, IOwinContext)
Gets the language.
Public method Static member GetLanguageById
Gets the language by identifier.
Public method Static member getLanguageCookie(SQL, Domain, HttpContext)
Gets the language cookie.
Public method Static member getLanguageCookie(SQL, Domain, HttpContextWrapper)
Gets the language cookie.
Public method Static member GetLanguageId(HttpContext)
Gets the language identifier.
Public method Static member GetLanguageId(HttpContextWrapper)
Gets the language identifier.
Public method Static member GetLanguageId(IOwinContext)
Gets the language identifier.
Public method Static member IsSearchIndex(HttpContext)
Determines whether [is search index] [the specified context].
Public method Static member IsSearchIndex(HttpContextWrapper)
Determines whether [is search index] [the specified context].
Public method Static member ReplaceDomainSlugs
Replaces the domain slugs.
Public method Static member RequestPath(RequestContext)
Requests the path.
Public method Static member RequestPath(HttpContext)
Requests the path.
Public method Static member SetDomainId(HttpContext, Int32)
Sets the language identifier.
Public method Static member SetDomainId(HttpContextWrapper, Int32)
Writes the supplied domain identifier into the cookie store for the current context so subsequent requests resolve the same admin domain.
Public method Static member SetDomainId(RequestContext, Int32)
Sets the domain identifier.
Public method Static member SetDomainIdLanguageId(HttpContext, Int32, Int32)
Sets the domain identifier language identifier.
Public method Static member SetDomainIdLanguageId(HttpContextWrapper, Int32, Int32)
Sets the domain identifier language identifier.
Public method Static member SetDomainIdLanguageId(RequestContext, Int32, Int32)
Sets the domain identifier language identifier.
Public method Static member SetLanguageId(HttpContext, Int32)
Sets the language identifier.
Public method Static member SetLanguageId(HttpContextWrapper, Int32)
Sets the language identifier.
Public method Static member SetLanguageId(RequestContext, Int32)
Sets the language identifier.