5 instantiations of SignedFileContentKey
Microsoft.DotNet.SignTool (5)
src\Configuration.cs (4)
145var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(fullPath)); 285SignedFileContentKey signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName); 302new SignedFileContentKey(parentContainer.ContentHash, parentContainer.FileName); 661var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
106FileContentKey = new SignedFileContentKey(File.ContentHash, File.FileName);
32 references to SignedFileContentKey
Microsoft.DotNet.SignTool (32)
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 (3)
24private readonly Dictionary<SignedFileContentKey, string> _hashToCollisionIdMap; 34Dictionary<SignedFileContentKey, string> hashToCollisionIdMap, 113var trackedSet = new HashSet<SignedFileContentKey>();
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; 126_zipDataMap = new Dictionary<SignedFileContentKey, ZipData>(); 127_filesByContentKey = new Dictionary<SignedFileContentKey, FileSignInfo>(); 130_whichPackagesTheFileIsIn = new Dictionary<SignedFileContentKey, HashSet<string>>(); 131_errors = new Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>>(); 133_hashToCollisionIdMap = new Dictionary<SignedFileContentKey, string>(); 145var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(fullPath)); 179foreach (var erroredFile in errorGroup.Value) 285SignedFileContentKey signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName); 301SignedFileContentKey parentSignedFileContentKey = 501private void LogError(SigningToolErrorCode code, SignedFileContentKey targetFile) 505filesErrored = new HashSet<SignedFileContentKey>(); 661var fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
13internal 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)