London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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