November Happy Hour will be moved to Thursday December 5th.

Class DefaultTemplateResolver

Inheritance
System.Object
DefaultTemplateResolver
Inherited Members
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public class DefaultTemplateResolver : TemplateResolver, ITemplateResolver, ITemplateResolverEvents

Constructors

DefaultTemplateResolver(ITemplateRepository, IHttpContextAccessor, IContentTypeRepository)

Creates a new instance of DefaultTemplateResolver

Declaration
public DefaultTemplateResolver(ITemplateRepository templateRepository, IHttpContextAccessor httpContextAccessor, IContentTypeRepository contentTypeRepository)
Parameters
Type Name Description
ITemplateRepository templateRepository
Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor
IContentTypeRepository contentTypeRepository

Methods

ResolveAllCore(HttpContext, ContentType, Type, Object, TemplateTypeCategories, IEnumerable<String>)

Declaration
protected override IEnumerable<TemplateModel> ResolveAllCore(HttpContext httpContext, ContentType contentType, Type itemType, object itemToRender, TemplateTypeCategories category, IEnumerable<string> tags)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext httpContext
ContentType contentType
System.Type itemType
System.Object itemToRender
TemplateTypeCategories category
System.Collections.Generic.IEnumerable<System.String> tags
Returns
Type Description
System.Collections.Generic.IEnumerable<TemplateModel>
Overrides

Implements

Extension Methods