Search Results for

    Show / Hide Table of Contents
    View Source

    Class HashGenerator

    Used to generate a string hash using crypto libraries over multiple objects

    Inheritance
    object
    DisposableObjectSlim
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public class HashGenerator : DisposableObjectSlim
    Remarks

    This should be used to generate a reliable hash that survives AppDomain restarts. This will use the crypto libs to generate the hash and will try to ensure that strings, etc... are not re-allocated so it's not consuming much memory.

    Constructors

    View Source

    HashGenerator()

    Declaration
    public HashGenerator()

    Methods

    View Source

    AddCaseInsensitiveString(string)

    Declaration
    public void AddCaseInsensitiveString(string s)
    Parameters
    Type Name Description
    string s
    View Source

    AddDateTime(DateTime)

    Declaration
    public void AddDateTime(DateTime d)
    Parameters
    Type Name Description
    DateTime d
    View Source

    AddFile(FileInfo)

    Declaration
    public void AddFile(FileInfo f)
    Parameters
    Type Name Description
    FileInfo f
    View Source

    AddFileSystemItem(FileSystemInfo)

    Declaration
    public void AddFileSystemItem(FileSystemInfo f)
    Parameters
    Type Name Description
    FileSystemInfo f
    View Source

    AddFolder(DirectoryInfo)

    Declaration
    public void AddFolder(DirectoryInfo d)
    Parameters
    Type Name Description
    DirectoryInfo d
    View Source

    AddInt(int)

    Declaration
    public void AddInt(int i)
    Parameters
    Type Name Description
    int i
    View Source

    AddLong(long)

    Declaration
    public void AddLong(long i)
    Parameters
    Type Name Description
    long i
    View Source

    AddObject(object)

    Declaration
    public void AddObject(object o)
    Parameters
    Type Name Description
    object o
    View Source

    AddString(string)

    Declaration
    public void AddString(string s)
    Parameters
    Type Name Description
    string s
    View Source

    DisposeResources()

    Disposes managed resources

    Declaration
    protected override void DisposeResources()
    View Source

    GenerateHash()

    Returns the generated hash output of all added objects

    Declaration
    public string GenerateHash()
    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX