DefaultChunkTreeCache Class

Summary

Default implementation of [Microsoft.AspNet.Mvc.Razor.Directives.IChunkTreeCache](Microsoft.AspNet.Mvc.Razor.Directives.IChunkTreeCache.yml).

Syntax

public class DefaultChunkTreeCache : IChunkTreeCache

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.Directives.DefaultChunkTreeCache

Constructors

DefaultChunkTreeCache(IFileProvider)

Initializes a new instance of [Microsoft.AspNet.Mvc.Razor.Directives.DefaultChunkTreeCache](Microsoft.AspNet.Mvc.Razor.Directives.DefaultChunkTreeCache.yml).

Arguments:
  • fileProvider (IFileProvider) – The application’s @!:IFileProvider-.
public DefaultChunkTreeCache(IFileProvider fileProvider)

Methods

GetOrAdd(System.String, System.Func<IFileInfo, ChunkTree>)
Arguments:
  • pagePath (System.String) –
  • getChunkTree (System.Func{IFileInfo,ChunkTree}) –
Return type:

ChunkTree

public ChunkTree GetOrAdd(string pagePath, Func<IFileInfo, ChunkTree> getChunkTree)