FileHashCalculator Class

Summary

Represents a file hash operation.
Namespace
Cake.Common.Security
Base Types
  • object
graph BT Type-->Base0["object"] Type["FileHashCalculator"] class Type type-node

Syntax

public sealed class FileHashCalculator

Constructors

Name Summary
FileHashCalculator(IFileSystem, IHashAlgorithmBuilder) Initializes a new instance of the FileHashCalculator class.
FileHashCalculator(IFileSystem) Initializes a new instance of the FileHashCalculator class.

Methods

Name Value Summary
Calculate(FilePath, HashAlgorithm) FileHash
Calculates the hash for a file using the given algorithm.

Extension Methods

Name Value Summary
Dump<FileHashCalculator>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<FileHashCalculator>(FileHashCalculator[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<FileHashCalculator>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<FileHashCalculator>(string) void
Requires the Cake.Issues addin
ThrowIfNull<FileHashCalculator>(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<FileHashCalculator>(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
ToStringWithNullMarkup() string
Requires the Cake.Issues addin