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