DirectoryHashCalculator Class

Summary

Class for calculating a hash for a directory.
Namespace
Cake.Common.Security
Base Types
  • object
graph BT Type-->Base0["object"] Type["DirectoryHashCalculator"] class Type type-node

Syntax

public class DirectoryHashCalculator

Constructors

Name Summary
DirectoryHashCalculator(ICakeContext, IHashAlgorithmBuilder) Initializes a new instance of the DirectoryHashCalculator class.

Methods

Name Value Summary
Calculate(DirectoryPath, IEnumerable<GlobPattern>, HashAlgorithm) DirectoryHash
Calculates the hash for a given directory.
Calculate(DirectoryPath, IEnumerable<string>, HashAlgorithm) DirectoryHash
Calculates the hash for a given directory.

Extension Methods

Name Value Summary
Dump<DirectoryHashCalculator>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DirectoryHashCalculator>(DirectoryHashCalculator[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DirectoryHashCalculator>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<DirectoryHashCalculator>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<DirectoryHashCalculator>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DirectoryHashCalculator>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin