3 instantiations of CredentialsItem
NuGet.Configuration (3)
PackageSource\PackageSourceCredential.cs (1)
207
return new
CredentialsItem
(Source, Username, PasswordText, IsPasswordClearText, ValidAuthenticationTypesText);
Settings\Items\CredentialsItem.cs (1)
200
var newSetting = new
CredentialsItem
(ElementName, Username, Password, IsPasswordClearText, ValidAuthenticationTypes);
Settings\SettingFactory.cs (1)
43
return new
CredentialsItem
(element, origin);
17 references to CredentialsItem
NuGet.Configuration (17)
PackageSource\PackageSourceCredential.cs (1)
205
public
CredentialsItem
AsCredentialsItem()
PackageSource\PackageSourceProvider.cs (11)
324
var
credentialsItem = credentialsSection?.Items.OfType<
CredentialsItem
>().FirstOrDefault(s => string.Equals(s.ElementName, sourceName, StringComparison.Ordinal));
449
var sourceCredentialsSettings = sourceCredentialsSection?.Items.OfType<
CredentialsItem
>();
471
foreach (
var
credentials in credentialsToRemove)
589
CredentialsItem
? credentialsSettingsItem = null;
602
credentialsSettingsItem = credentialsSection?.Items.OfType<
CredentialsItem
>().FirstOrDefault(s => string.Equals(s.ElementName, sourceToUpdate.Key, StringComparison.OrdinalIgnoreCase));
649
CredentialsItem
? existingCredentialsItem,
805
var existingCredentials = credentialsSection?.Items.OfType<
CredentialsItem
>();
812
CredentialsItem
? existingCredentialsItem = null;
847
var sourceCredentialsSettings = sourceCredentialsSection?.Items.OfType<
CredentialsItem
>();
858
if (existingsourceCredentialsLookup != null && existingsourceCredentialsLookup.TryGetValue(sourceItem.Value.Key, out
var
existingSourceCredentialItem))
Settings\Items\CredentialsItem.cs (5)
200
var
newSetting = new CredentialsItem(ElementName, Username, Password, IsPasswordClearText, ValidAuthenticationTypes);
242
var
item = other as
CredentialsItem
;
268
var
credentials = other as
CredentialsItem
;