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