Class IPAddressResolver
Component that resolves ip addresses.
Inheritance
System.Object
IPAddressResolver
Implements
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.7Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class IPAddressResolver : IClientIPAddressResolver
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 |
Explicit Interface Implementations
IClientIPAddressResolver.ResolveAddress(HttpContextBase)
Declaration
IPAddress IClientIPAddressResolver.ResolveAddress(HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext |
Returns
Type | Description |
---|---|
System.Net.IPAddress |