/// <summary> /// Compute the SHA-1 hash of the given file, then add it to InstrumentFiles /// </summary> /// <param name="instrumentFile"></param> /// <returns></returns> public bool AddInstrumentFile(FileInfo instrumentFile) { var sha1Hash = HashUtilities.ComputeFileHashSha1(instrumentFile.FullName); AddInstrumentFile(instrumentFile.Name, instrumentFile.Length, sha1Hash, HashUtilities.HashTypeConstants.SHA1); return(true); }