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 SourceRuntimeHashPaths()
Declaration
public RuntimeHashPaths()
Methods
View SourceAddAssemblies(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 |
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 |
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. |
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. |
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. |