6 instantiations of SignedFileContentKey
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (1)
179
var fileUniqueKey = new
SignedFileContentKey
(file.ContentHash, engineFileName);
src\Configuration.cs (4)
149
var fileUniqueKey = new
SignedFileContentKey
(contentHash, Path.GetFileName(fullPath));
289
SignedFileContentKey signedFileContentKey = new
SignedFileContentKey
(file.ContentHash, file.FileName);
314
new
SignedFileContentKey
(parentContainer.ContentHash, parentContainer.FileName);
710
var fileUniqueKey = new
SignedFileContentKey
(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
118
FileContentKey = new
SignedFileContentKey
(File.ContentHash, File.FileName);
35 references to SignedFileContentKey
Microsoft.DotNet.SignTool (35)
src\BatchSignInput.cs (2)
25
internal ImmutableDictionary<
SignedFileContentKey
, ZipData> ZipDataMap;
33
internal BatchSignInput(ImmutableArray<FileSignInfo> filesToSign, ImmutableDictionary<
SignedFileContentKey
, ZipData> zipDataMap, ImmutableArray<KeyValuePair<string, string>> filesToCopy)
src\BatchSignUtil.cs (6)
25
private readonly Dictionary<
SignedFileContentKey
, string> _hashToCollisionIdMap;
37
Dictionary<
SignedFileContentKey
, string> hashToCollisionIdMap,
121
var trackedSet = new HashSet<
SignedFileContentKey
>();
164
Dictionary<
SignedFileContentKey
, FileSignInfo> engines = new Dictionary<
SignedFileContentKey
, FileSignInfo>();
179
var
fileUniqueKey = new SignedFileContentKey(file.ContentHash, engineFileName);
src\Configuration.cs (17)
29
private readonly Dictionary<
SignedFileContentKey
, ZipData> _zipDataMap;
63
private readonly Dictionary<
SignedFileContentKey
, FileSignInfo> _filesByContentKey;
68
private readonly Dictionary<
SignedFileContentKey
, HashSet<string>> _whichPackagesTheFileIsIn;
73
private readonly Dictionary<SigningToolErrorCode, HashSet<
SignedFileContentKey
>> _errors;
97
internal Dictionary<
SignedFileContentKey
, string> _hashToCollisionIdMap;
129
_zipDataMap = new Dictionary<
SignedFileContentKey
, ZipData>();
130
_filesByContentKey = new Dictionary<
SignedFileContentKey
, FileSignInfo>();
133
_whichPackagesTheFileIsIn = new Dictionary<
SignedFileContentKey
, HashSet<string>>();
134
_errors = new Dictionary<SigningToolErrorCode, HashSet<
SignedFileContentKey
>>();
136
_hashToCollisionIdMap = new Dictionary<
SignedFileContentKey
, string>();
149
var
fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(fullPath));
183
foreach (
var
erroredFile in errorGroup.Value)
289
SignedFileContentKey
signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName);
313
SignedFileContentKey
parentSignedFileContentKey =
538
private void LogError(SigningToolErrorCode code,
SignedFileContentKey
targetFile)
542
filesErrored = new HashSet<
SignedFileContentKey
>();
710
var
fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
13
internal readonly
SignedFileContentKey
FileContentKey;
src\PathWithHash.cs (1)
13
/// This contrasts with <seealso cref="
SignedFileContentKey
"/>, which represents
src\SignedFileContentKey.cs (8)
19
internal struct SignedFileContentKey : IEquatable<
SignedFileContentKey
>
42
=> obj is
SignedFileContentKey
key && Equals(key);
47
bool IEquatable<
SignedFileContentKey
>.Equals(
SignedFileContentKey
other)
50
public static bool operator ==(
SignedFileContentKey
key1,
SignedFileContentKey
key2)
53
public static bool operator !=(
SignedFileContentKey
key1,
SignedFileContentKey
key2)