Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface IContentEndpointSelector

Signature for component that selects an endpoint for a routed content instance.

Namespace: EPiServer.Web.Routing.Matching.Internal
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3
Syntax
public interface IContentEndpointSelector

Methods

SelectAsync(ContentRouteData, HttpContext)

Selects an endpoint for a content item for the current HttpContext

Declaration
Task<Endpoint> SelectAsync(ContentRouteData content, HttpContext context)
Parameters
Type Name Description
ContentRouteData content

The routed content data

Microsoft.AspNetCore.Http.HttpContext context

Current http context

Returns
Type Description
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.Endpoint>

A matched endpoint or null if no endpoint matched

Extension Methods