November Happy Hour will be moved to Thursday December 5th.

Class HostNameResolver

Abstract class for resolving host name from uri.

Inheritance
System.Object
HostNameResolver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public abstract class HostNameResolver

Constructors

HostNameResolver()

Declaration
protected HostNameResolver()

Methods

Get(Uri)

Get the host name for the the uri.

Declaration
public abstract string Get(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.String
Remarks

If the uri is absolute path then the host name is authority part of uri. If the uri is relative then host name resolves from current httpcontext part. If the uri is relative and the hosting environment is none web context (e.g. scheduler service) then host name resolves from SiteDefinitionResolver.

Extension Methods