IChunkMerger Interface¶
Defines the contract for merging Microsoft.AspNetCore.Razor.Chunks.Chunk
instances from _ViewStart files.
- Namespace
Microsoft.AspNetCore.Mvc.Razor.Directives
- Assemblies
- Microsoft.AspNetCore.Mvc.Razor.Host
Syntax¶
public interface IChunkMerger
-
interface
Microsoft.AspNetCore.Mvc.Razor.Directives.
IChunkMerger
Methods¶
-
MergeInheritedChunks
(Microsoft.AspNetCore.Razor.Chunks.ChunkTree, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.Chunk>)¶ Merges an inherited
Microsoft.AspNetCore.Razor.Chunks.Chunk
into theMicrosoft.AspNetCore.Razor.Chunks.ChunkTree
.Arguments: - chunkTree (Microsoft.AspNetCore.Razor.Chunks.ChunkTree) – The
Microsoft.AspNetCore.Razor.Chunks.ChunkTree
to merge into. - inheritedChunks (System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.Chunk>) – The
System.Collections.Generic.IReadOnlyList`1
s to merge.
void MergeInheritedChunks(ChunkTree chunkTree, IReadOnlyList<Chunk> inheritedChunks)
- chunkTree (Microsoft.AspNetCore.Razor.Chunks.ChunkTree) – The
-
VisitChunk
(Microsoft.AspNetCore.Razor.Chunks.Chunk)¶ Visits a
Microsoft.AspNetCore.Razor.Chunks.Chunk
from theMicrosoft.AspNetCore.Razor.Chunks.ChunkTree
to merge into.Arguments: chunk (Microsoft.AspNetCore.Razor.Chunks.Chunk) – A Microsoft.AspNetCore.Razor.Chunks.Chunk
from the tree.void VisitChunk(Chunk chunk)
-