6 instantiations of SignedFileContentKey
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (1)
182var fileUniqueKey = new SignedFileContentKey(file.ContentHash, engineFileName);
src\Configuration.cs (4)
153var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(itemToSign.FullPath)); 302SignedFileContentKey signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName); 327new SignedFileContentKey(parentContainer.ContentHash, parentContainer.FileName); 754var 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)
28private readonly Dictionary<SignedFileContentKey, ZipData> _zipDataMap; 62private readonly Dictionary<SignedFileContentKey, FileSignInfo> _filesByContentKey; 67private readonly Dictionary<SignedFileContentKey, HashSet<string>> _whichPackagesTheFileIsIn; 72private readonly Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>> _errors; 96internal Dictionary<SignedFileContentKey, string> _hashToCollisionIdMap; 133_zipDataMap = new Dictionary<SignedFileContentKey, ZipData>(); 134_filesByContentKey = new Dictionary<SignedFileContentKey, FileSignInfo>(); 137_whichPackagesTheFileIsIn = new Dictionary<SignedFileContentKey, HashSet<string>>(); 138_errors = new Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>>(); 140_hashToCollisionIdMap = new Dictionary<SignedFileContentKey, string>(); 153var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(itemToSign.FullPath)); 187foreach (var erroredFile in errorGroup.Value) 302SignedFileContentKey signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName); 326SignedFileContentKey parentSignedFileContentKey = 582private void LogError(SigningToolErrorCode code, SignedFileContentKey targetFile) 586filesErrored = new HashSet<SignedFileContentKey>(); 754var 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)