6 instantiations of SignedFileContentKey
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (1)
182var fileUniqueKey = new SignedFileContentKey(file.ContentHash, engineFileName);
src\Configuration.cs (4)
154var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(itemToSign.FullPath)); 303SignedFileContentKey signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName); 328new SignedFileContentKey(parentContainer.ContentHash, parentContainer.FileName); 755var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
138FileContentKey = new SignedFileContentKey(File.ContentHash, File.FileName);
35 references to SignedFileContentKey
Microsoft.DotNet.SignTool (35)
src\BatchSignInput.cs (2)
25internal ImmutableDictionary<SignedFileContentKey, ZipData> ZipDataMap; 33internal BatchSignInput(ImmutableArray<FileSignInfo> filesToSign, ImmutableDictionary<SignedFileContentKey, ZipData> zipDataMap, ImmutableArray<KeyValuePair<string, string>> filesToCopy)
src\BatchSignUtil.cs (6)
25private readonly Dictionary<SignedFileContentKey, string> _hashToCollisionIdMap; 35Dictionary<SignedFileContentKey, string> hashToCollisionIdMap, 121var trackedSet = new HashSet<SignedFileContentKey>(); 167Dictionary<SignedFileContentKey, FileSignInfo> engines = new Dictionary<SignedFileContentKey, FileSignInfo>(); 182var fileUniqueKey = new SignedFileContentKey(file.ContentHash, engineFileName);
src\Configuration.cs (17)
29private readonly Dictionary<SignedFileContentKey, ZipData> _zipDataMap; 63private readonly Dictionary<SignedFileContentKey, FileSignInfo> _filesByContentKey; 68private readonly Dictionary<SignedFileContentKey, HashSet<string>> _whichPackagesTheFileIsIn; 73private readonly Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>> _errors; 97internal Dictionary<SignedFileContentKey, string> _hashToCollisionIdMap; 134_zipDataMap = new Dictionary<SignedFileContentKey, ZipData>(); 135_filesByContentKey = new Dictionary<SignedFileContentKey, FileSignInfo>(); 138_whichPackagesTheFileIsIn = new Dictionary<SignedFileContentKey, HashSet<string>>(); 139_errors = new Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>>(); 141_hashToCollisionIdMap = new Dictionary<SignedFileContentKey, string>(); 154var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(itemToSign.FullPath)); 188foreach (var erroredFile in errorGroup.Value) 303SignedFileContentKey signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName); 327SignedFileContentKey parentSignedFileContentKey = 583private void LogError(SigningToolErrorCode code, SignedFileContentKey targetFile) 587filesErrored = new HashSet<SignedFileContentKey>(); 755var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
14internal readonly SignedFileContentKey FileContentKey;
src\PathWithHash.cs (1)
13/// This contrasts with <seealso cref="SignedFileContentKey"/>, which represents
src\SignedFileContentKey.cs (8)
19internal struct SignedFileContentKey : IEquatable<SignedFileContentKey> 42=> obj is SignedFileContentKey key && Equals(key); 47bool IEquatable<SignedFileContentKey>.Equals(SignedFileContentKey other) 50public static bool operator ==(SignedFileContentKey key1, SignedFileContentKey key2) 53public static bool operator !=(SignedFileContentKey key1, SignedFileContentKey key2)