Interface ISiteDefinitionResolver
Component that resolves which Site
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface ISiteDefinitionResolver
Methods
GetByContent(ContentReference, Boolean)
Gets the Site
Declaration
SiteDefinition GetByContent(ContentReference contentLink, bool fallbackToWildcard)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
fallbackToWildcard | if set to |
Returns
Type | Description |
---|---|
Site |
A Site |
Remarks
This is done by
traversing the page tree upwards from current link until a Page that matches a StartPage for a registered Site
If the contentLink
is not located beneath a start page, the search will fall back to the SitefallbackToWildcard
is set to True.
GetByHostname(String, Boolean, out HostDefinition)
Gets the Site
Declaration
SiteDefinition GetByHostname(string hostname, bool fallbackToWildcard, out HostDefinition matchedHost)
Parameters
Type | Name | Description |
---|---|---|
System. |
hostname | Name of the host. |
System. |
fallbackToWildcard | if set to |
Host |
matchedHost | The Host |
Returns
Type | Description |
---|---|
Site |
The Site |