Search Results for

    Show / Hide Table of Contents
    View Source

    Class RuntimeHashPaths

    Paths used to determine the IRuntimeHash

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Composing
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class RuntimeHashPaths

    Constructors

    View Source

    RuntimeHashPaths()

    Declaration
    public RuntimeHashPaths()

    Methods

    View Source

    AddAssemblies(IAssemblyProvider)

    Creates a runtime hash based on the assembly provider

    Declaration
    public RuntimeHashPaths AddAssemblies(IAssemblyProvider assemblyProvider)
    Parameters
    Type Name Description
    IAssemblyProvider assemblyProvider
    Returns
    Type Description
    RuntimeHashPaths
    View Source

    AddFile(FileInfo, bool)

    Adds a file to be included in the runtime hash calculation.

    Declaration
    public void AddFile(FileInfo fileInfo, bool scanFileContent = false)
    Parameters
    Type Name Description
    FileInfo fileInfo

    The file information for the file to add.

    bool scanFileContent

    If set to true, the file content is scanned; otherwise, only file metadata is used.

    View Source

    AddFolder(DirectoryInfo)

    Adds a folder to be included in the runtime hash calculation.

    Declaration
    public RuntimeHashPaths AddFolder(DirectoryInfo pathInfo)
    Parameters
    Type Name Description
    DirectoryInfo pathInfo

    The directory information for the folder to add.

    Returns
    Type Description
    RuntimeHashPaths

    The current RuntimeHashPaths instance for method chaining.

    View Source

    GetFiles()

    Gets all files that have been added for hash calculation.

    Declaration
    public IReadOnlyDictionary<FileInfo, bool> GetFiles()
    Returns
    Type Description
    IReadOnlyDictionary<FileInfo, bool>

    A dictionary mapping file information to a boolean indicating whether to scan content.

    View Source

    GetFolders()

    Gets all folders that have been added for hash calculation.

    Declaration
    public IEnumerable<DirectoryInfo> GetFolders()
    Returns
    Type Description
    IEnumerable<DirectoryInfo>

    A collection of directory information objects.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX