View Source
Class HttpContextExtensions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class HttpContextExtensions
Methods
View Source
GetContextItem<T>(HttpContext, String)
Declaration
public static T GetContextItem<T>(this HttpContext httpContext, string key)
Parameters
Type |
Name |
Description |
System.Web.HttpContext |
httpContext |
|
System.String |
key |
|
Returns
Type Parameters
View Source
GetContextItem<T>(HttpContextBase, String)
Declaration
public static T GetContextItem<T>(this HttpContextBase httpContext, string key)
Parameters
Type |
Name |
Description |
System.Web.HttpContextBase |
httpContext |
|
System.String |
key |
|
Returns
Type Parameters
View Source
GetCurrentRequestIpAddress(HttpContextBase)
Declaration
public static string GetCurrentRequestIpAddress(this HttpContextBase httpContext)
Parameters
Type |
Name |
Description |
System.Web.HttpContextBase |
httpContext |
|
Returns
Type |
Description |
System.String |
|