6 instantiations of SignedFileContentKey
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (1)
182
var fileUniqueKey = new
SignedFileContentKey
(file.ContentHash, engineFileName);
src\Configuration.cs (4)
154
var fileUniqueKey = new
SignedFileContentKey
(contentHash, Path.GetFileName(itemToSign.FullPath));
303
SignedFileContentKey signedFileContentKey = new
SignedFileContentKey
(file.ContentHash, file.FileName);
328
new
SignedFileContentKey
(parentContainer.ContentHash, parentContainer.FileName);
755
var fileUniqueKey = new
SignedFileContentKey
(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
138
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;
35
Dictionary<
SignedFileContentKey
, string> hashToCollisionIdMap,
121
var trackedSet = new HashSet<
SignedFileContentKey
>();
167
Dictionary<
SignedFileContentKey
, FileSignInfo> engines = new Dictionary<
SignedFileContentKey
, FileSignInfo>();
182
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;
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>();
154
var
fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(itemToSign.FullPath));
188
foreach (
var
erroredFile in errorGroup.Value)
303
SignedFileContentKey
signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName);
327
SignedFileContentKey
parentSignedFileContentKey =
583
private void LogError(SigningToolErrorCode code,
SignedFileContentKey
targetFile)
587
filesErrored = new HashSet<
SignedFileContentKey
>();
755
var
fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
14
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)