Class UserRequestIPAddressController
Inheritance
System.Object
UserRequestIPAddressController
Implements
Inherited Members
Namespace: DotNetNuke.Services.UserRequest
Assembly: DotNetNuke.dll
Syntax
public class UserRequestIPAddressController : ServiceLocator<IUserRequestIPAddressController, UserRequestIPAddressController>, IUserRequestIPAddressController
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override Func<IUserRequestIPAddressController> GetFactory()
Returns
Type | Description |
---|---|
Func<IUserRequestIPAddressController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.UserRequest.IUserRequestIPAddressController, DotNetNuke.Services.UserRequest.UserRequestIPAddressController>.GetFactory()
|
Improve this Doc
View Source
GetUserRequestIPAddress(HttpRequestBase, IPAddressFamily)
To retrieve IPv4/IPv6 of user making request to application.
Declaration
public string GetUserRequestIPAddress(HttpRequestBase request, IPAddressFamily ipFamily)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestBase | request | |
IPAddressFamily | ipFamily |
Returns
Type | Description |
---|---|
System.String | IP address. |
GetUserRequestIPAddress(HttpRequestBase)
To retrieve IPv4 of user making request to application.
Declaration
public string GetUserRequestIPAddress(HttpRequestBase request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestBase | request |
Returns
Type | Description |
---|---|
System.String | IP address. |