37 instantiations of NuGetSourceInfo
aspire (1)
NuGet\NuGetClient.cs (1)
1246
return
new
(
Aspire.Cli.Tests (36)
NuGet\NuGetConfigurationTests.cs (34)
30
new
("aspire-daily", "integration", isEnabled, true, false) { IsIntegrationSource = true },
31
new
("public", "public", true, false, false)
59
Sources = [
new
("aspire-daily", "integration", true, false, false) { IsIntegrationSource = true }]
88
new
("aspire-daily", "integration", true, false, false) { IsIntegrationSource = true },
89
new
("company", "integration", true, false, false) { IsIntegrationSource = true }
110
Sources = [
new
(sourceKey, "integration", true, false, false) { IsIntegrationSource = true }]
141
new
(sdkSourceKey, "sdk", true, false, false) { IsCliManaged = true },
142
new
("public", "public", true, false, false)
177
new
(previousKey, NuGetSourceIdentity.Compute(previousSource, settings.SourceIdentityKey),
179
new
("public", "public", true, false, false),
180
new
("sdk", "sdk", true, false, false)
217
new
("company-feed", NuGetSourceIdentity.Compute(selectedSource, settings.SourceIdentityKey),
219
new
("other", NuGetSourceIdentity.Compute(otherSource, settings.SourceIdentityKey), true, false, false)
244
new
("authenticated", identity, true, true, false) { IsIntegrationSource = true },
245
new
("anonymous", identity, true, false, false) { IsIntegrationSource = true }
269
new
("aspire-daily", "integration", false, false, false) { IsIntegrationSource = true },
270
new
("aspire-staging", "channel", true, false, false)
297
new
("aspire-daily", "integration", true, false, false) { IsIntegrationSource = true }
330
new
("company", "company", true, false, false),
331
new
("aspire-test", "daily", true, false, false),
332
new
("aspire-test-0", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), isEnabled, true, false)
378
new
("company", "company", true, true, true),
379
new
(sourceKey, "channel", true, true, false) { IsCliManaged = isCliManaged }
410
Sources = [
new
("aspire-test", "daily", true, false, false)]
437
new
("company", "company", true, true, true),
438
new
("aspire-staging", "staging", true, false, false),
439
new
("disabled", "disabled", false, false, false)
467
Sources = [
new
("aspire-staging", "staging", true, false, false)]
496
new
("company-public", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey),
531
new
("company", "company", true, false, false),
532
new
("aspire-test", NuGetSourceIdentity.Compute(channelSource, settings.SourceIdentityKey),
534
new
("nuget.org", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey),
611
Sources = [
new
("company", "identity", false, false, false)],
635
Sources = [
new
("old", "identity", isEnabled, false, false)]
Projects\PrebuiltAppHostServerTests.cs (2)
2476
=>
new
(
5445
.Select(source => new
NuGetSourceInfo
(
20 references to NuGetSourceInfo
aspire (14)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (2)
93
foreach (
var
source in settings.Sources.Where(source =>
157
var
ambientSource = settings.Sources.Single(ambient =>
DotNet\DotNetAppHostNuGetConfigMerger.cs (1)
200
var
ambientSource = sourceConfiguration.Settings.Sources.Single(ambient =>
NuGet\BundleNuGetService.cs (1)
41
IReadOnlyList<
NuGetSourceInfo
> Sources,
NuGet\NuGetClient.cs (1)
1244
private static
NuGetSourceInfo
CreateSourceInfo(PackageSource source, byte[] identityKey)
NuGet\NuGetConfigurationBuilder.cs (9)
39
.Select(mapping => channelSources.TryGetValue(mapping.SourceKey, out
var
source)
48
foreach (
var
source in channelSources.Values.Where(static source => source.IsIntegrationSource))
123
internal static bool IsCliManagedSource(
NuGetSourceInfo
source, string workloadId)
126
internal static bool IsObsoleteStableChannelPattern(
NuGetSourceInfo
source, string pattern)
149
IReadOnlyList<
NuGetSourceInfo
> ambientSources,
196
var
preferredDisabledMatch = ambientMatches.FirstOrDefault(static ambientSource =>
201
foreach (
var
ambientSource in selectedMatches)
360
IReadOnlyList<
NuGetSourceInfo
> ambientSources,
377
foreach (
var
ambientSource in ambientSources.Where(static source => source.IsEnabled))
Aspire.Cli.Tests (6)
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (1)
83
var
teamSource = Assert.Single(
NuGet\NuGetClientTests.cs (2)
1745
var
sourceInfo = Assert.Single(settings.Sources, source => source.Name == "private");
1810
var
sourceInfo = Assert.Single(settings.Sources);
NuGet\NuGetConfigurationQueryTests.cs (1)
150
var
retained = Assert.Single(service.GetNuGetSettings(appHostDirectory.FullName, TestContext.Current.CancellationToken).Sources,
NuGet\NuGetTestHelperTests.cs (1)
24
var
source = Assert.Single(snapshot.Sources);
Projects\PrebuiltAppHostServerTests.cs (1)
2470
private static
NuGetSourceInfo
CreateNuGetSourceInfo(