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

Class IPAddressResolver

Component that resolves ip addresses.

Inheritance
System.Object
IPAddressResolver
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public class IPAddressResolver : Object, 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(HttpContext)

Resolves the client address from a http context.

Declaration
public virtual IPAddress ResolveClientAddress(HttpContext httpContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext httpContext

The HTTP context.

Returns
Type Description
System.Net.IPAddress

Explicit Interface Implementations

IClientIPAddressResolver.ResolveAddress(HttpContext)

Declaration
IPAddress IClientIPAddressResolver.ResolveAddress(HttpContext httpContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext httpContext
Returns
Type Description
System.Net.IPAddress

Implements

Extension Methods