1 write to Username
NuGet.Configuration (1)
PackageSource\PackageSourceCredential.cs (1)
100
Username
= username ?? throw new ArgumentNullException(nameof(username));
10 references to Username
Aspire.Cli.Tests (3)
NuGet\BundleNuGetServiceTests.cs (1)
62
Assert.Equal("test-user", privateSource.Credentials!.
Username
);
NuGet\NuGetPackageOperationConfigurationTests.cs (1)
152
Assert.Equal("test-user", selectedSource.Credentials.
Username
);
Templating\TemplateNuGetConfigServiceTests.cs (1)
286
Assert.Equal("user", privateSource.Credentials!.
Username
);
NuGet.Configuration (7)
PackageSource\PackageSourceCredential.cs (7)
84
public bool IsValid() => !string.IsNullOrEmpty(
Username
) && !string.IsNullOrEmpty(PasswordText);
112
combiner.AddObject(
Username
);
178
return new AuthTypeFilteredCredentials(new NetworkCredential(
Username
, Password), ValidAuthenticationTypes);
183
return new PackageSourceCredential(Source,
Username
, PasswordText, IsPasswordClearText, ValidAuthenticationTypesText);
207
return new CredentialsItem(Source,
Username
, PasswordText, IsPasswordClearText, ValidAuthenticationTypesText);
223
string.Equals(
Username
, other.
Username
, StringComparison.Ordinal) &&