Class IPAddressResolver
Component that resolves ip addresses.
Inheritance
System.Object
IPAddressResolver
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.dll
Version: 8.11.0Syntax
public class IPAddressResolver
Constructors
IPAddressResolver()
Initializes a new instance of the IPAddressResolver class.
Declaration
public IPAddressResolver()
IPAddressResolver(IClientIPAddressResolver)
Initializes a new instance of the IPAddressResolver class.
Declaration
public IPAddressResolver(IClientIPAddressResolver clientResolver)
Parameters
Type | Name | Description |
---|---|---|
IClientIPAddressResolver | clientResolver | The resolver. |
Methods
ResolveClientAddress(HttpContextBase)
Resolves the client address from a http context.
Declaration
public virtual IPAddress ResolveClientAddress(HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
System.Net.IPAddress |