ChunkInheritanceUtility Class

Definition

A utility type for supporting inheritance of directives into a page from applicable _ViewImports pages.

public ref class ChunkInheritanceUtility
public class ChunkInheritanceUtility
type ChunkInheritanceUtility = class
Public Class ChunkInheritanceUtility
Inheritance
ChunkInheritanceUtility

Constructors

ChunkInheritanceUtility(MvcRazorHost, IChunkTreeCache, IReadOnlyList<Chunk>)

Initializes a new instance of ChunkInheritanceUtility.

Methods

GetInheritedChunkTreeResults(String)

Gets an ordered IReadOnlyList<T> of parsed ChunkTrees and file paths for each _ViewImports that is applicable to the page located at pagePath. The list is ordered so that the ChunkTreeResult's ChunkTree for the _ViewImports closest to the pagePath in the file system appears first.

MergeInheritedChunkTrees(ChunkTree, IReadOnlyList<ChunkTree>, String)

Merges Chunk inherited by default and ChunkTree instances produced by parsing _ViewImports files into the specified chunkTree.

Applies to