Class HttpContextAccessorExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class HttpContextAccessorExtensions
Methods
View SourceGetRequiredHttpContext(IHttpContextAccessor)
Declaration
public static HttpContext GetRequiredHttpContext(this IHttpContextAccessor httpContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.IHttpContextAccessor | httpContextAccessor |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Http.HttpContext |