SaaS CMS has officially launched! Learn more now.

Class HttpContextExtensions

Convenient extension methods to Microsoft.AspNetCore.Http.HttpContext for templating

Inheritance
System.Object
HttpContextExtensions
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public static class HttpContextExtensions : Object

Methods

ContentRenderingContext(HttpContext)

Gets the current ContentRenderingContext or null if the current request is not a routed content request

Declaration
public static ContentRenderingContext ContentRenderingContext(this HttpContext httpContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext httpContext
Returns
Type Description
ContentRenderingContext