54 references to Attributes
NuGet.Configuration (54)
Settings\Items\AddItem.cs (5)
16
public string Key =>
Attributes
[ConfigurationConstants.KeyAttribute];
20
get => Settings.ApplyEnvironmentTransform(
Attributes
[ConfigurationConstants.ValueAttribute]);
25
Attributes
.Where(a =>
92
if (
Attributes
.ContainsKey(attributeName))
143
if ((!other.
Attributes
.TryGetValue(ConfigurationConstants.ValueAttribute, out var value) ||
Settings\Items\AuthorItem.cs (1)
54
foreach (var attr in
Attributes
)
Settings\Items\CertificateItem.cs (4)
18
get =>
Attributes
[ConfigurationConstants.Fingerprint];
32
get => CryptoHashUtility.GetHashAlgorithmName(
Attributes
[ConfigurationConstants.HashAlgorithm]);
48
if (bool.TryParse(
Attributes
[ConfigurationConstants.AllowUntrustedRoot], out var parsedAttribute))
85
string.Format(CultureInfo.CurrentCulture, Resources.UnsupportedHashAlgorithm,
Attributes
[ConfigurationConstants.HashAlgorithm]),
Settings\Items\ClientCertItem.cs (1)
30
public string PackageSource =>
Attributes
[ConfigurationConstants.PackageSourceAttribute];
Settings\Items\CredentialsItem.cs (2)
207
foreach (var attr in
Attributes
)
232
foreach (var attr in
Attributes
)
Settings\Items\FileClientCertItem.cs (5)
91
public string FilePath =>
Attributes
[ConfigurationConstants.PathAttribute];
93
public bool IsPasswordIsClearText =>
Attributes
.ContainsKey(ConfigurationConstants.ClearTextPasswordAttribute);
102
Attributes
.TryGetValue(ConfigurationConstants.ClearTextPasswordAttribute, out result);
106
if (
Attributes
.TryGetValue(ConfigurationConstants.PasswordAttribute, out var encryptedPassword))
148
foreach (KeyValuePair<string, string> attr in
Attributes
)
Settings\Items\OwnersItem.cs (1)
78
foreach (var attr in
Attributes
)
Settings\Items\PackagePatternItem.cs (1)
18
public string Pattern =>
Attributes
[ConfigurationConstants.PatternAttribute];
Settings\Items\PackageSourceMappingSourceItem.cs (2)
32
public virtual string Key =>
Attributes
[ConfigurationConstants.KeyAttribute];
139
foreach (KeyValuePair<string, string> attr in
Attributes
)
Settings\Items\RepositoryItem.cs (2)
17
public string ServiceIndex =>
Attributes
[ConfigurationConstants.ServiceIndex];
123
foreach (var attr in
Attributes
)
Settings\Items\SourceItem.cs (3)
14
if (
Attributes
.TryGetValue(ConfigurationConstants.ProtocolVersionAttribute, out var attribute))
28
if (
Attributes
.TryGetValue(ConfigurationConstants.AllowInsecureConnections, out var attribute))
42
if (
Attributes
.TryGetValue(ConfigurationConstants.DisableTLSCertificateValidation, out var attribute))
Settings\Items\StoreClientCertItem.cs (5)
114
if (Enum.TryParse("FindBy" +
Attributes
[ConfigurationConstants.FindByAttribute], ignoreCase: true, result: out X509FindType result))
123
public string FindValue =>
Attributes
[ConfigurationConstants.FindValueAttribute];
129
if (Enum.TryParse(
Attributes
[ConfigurationConstants.StoreLocationAttribute], ignoreCase: true, result: out StoreLocation result))
142
if (Enum.TryParse(
Attributes
[ConfigurationConstants.StoreNameAttribute], ignoreCase: true, result: out StoreName result))
224
foreach (KeyValuePair<string, string> attr in
Attributes
)
Settings\Items\TrustedSignerItem.cs (1)
18
public virtual string Name =>
Attributes
[ConfigurationConstants.NameAttribute];
Settings\Items\UnknownItem.cs (3)
63
var newSetting = new UnknownItem(ElementName,
Attributes
, Children.Select(c => c.Clone()));
156
foreach (var attr in
Attributes
)
220
foreach (var attribute in item.
Attributes
)
Settings\NuGetConfiguration.cs (1)
143
return new NuGetConfiguration(
Attributes
, Sections.Select(s => (SettingSection)s.Value.Clone()));
Settings\ParsedSettingSection.cs (1)
28
return new VirtualSettingSection(ElementName,
Attributes
, Items.Select(s => (SettingItem)s.Clone()));
Settings\SettingElement.cs (4)
60
public override bool IsEmpty() => !
Attributes
.Any();
122
foreach (var attr in
Attributes
)
153
if (
Attributes
.ContainsKey(attributeName))
184
if (!
Attributes
.ContainsKey(attributeName))
Settings\SettingFactory.cs (6)
121
x.ElementName + string.Join("", x.
Attributes
.Select(a => a.Value)),
122
y.ElementName + string.Join("", y.
Attributes
.Select(a => a.Value)));
138
x.ElementName + string.Join("", x.
Attributes
.Select(a => a.Value)),
139
y.ElementName + string.Join("", y.
Attributes
.Select(a => a.Value)));
149
return StringComparer.OrdinalIgnoreCase.GetHashCode(obj.ElementName + string.Join("", obj.
Attributes
.Select(a => a.Value)));
178
var duplicatedKey = string.Join(", ", duplicatedDescendants.Select(d => d.
Attributes
["key"]));
Settings\SettingItem.cs (2)
65
var otherAttributes = setting.
Attributes
.ToDictionary(a => a.Key, a => a.Value);
107
return
Attributes
;
Settings\SettingSection.cs (1)
18
c.
Attributes
.TryGetValue(attributeName, out var attributeValue) &&
Settings\SettingsGroup.cs (1)
64
foreach (var attr in
Attributes
)
Settings\VirtualSettingSection.cs (2)
15
: this(section.ElementName, section.
Attributes
, section.Items)
158
return new VirtualSettingSection(ElementName,
Attributes
, Items.Select(s => (SettingItem)s.Clone()));