51 instantiations of NuGetPackageSourceMapping
aspire (6)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (2)
65
: integrationSources.Select(source => new
NuGetPackageSourceMapping
(source.Key,
126
removedMappings.Add(new
NuGetPackageSourceMapping
(source.Name, obsoletePatterns));
NuGet\NuGetClient.cs (2)
878
.Select(static item => new
NuGetPackageSourceMapping
(
913
.Select(static mapping => new
NuGetPackageSourceMapping
(
NuGet\NuGetConfigurationBuilder.cs (2)
467
.Select(static mapping => new
NuGetPackageSourceMapping
(
490
: aliases.Select(source => new
NuGetPackageSourceMapping
(source.Name, mapping.Patterns)).ToArray();
Aspire.Cli.Tests (45)
NuGet\NuGetClientTests.cs (1)
1849
[
new
("private", ["Aspire.*"])],
NuGet\NuGetConfigurationTests.cs (37)
24
new
("aspire-daily", ["Aspire.Hosting.Private", "Private.*"]),
25
new
("public", ["*"])
56
var settings = CreateSettings([
new
("aspire-daily", [pattern])]) with
82
? [
new
("aspire-daily", [broadPattern]),
new
("company", [narrowPattern])]
83
: [
new
("aspire-daily", [broadPattern, narrowPattern])]) with
108
var settings = CreateSettings([
new
(sourceKey, ["Aspire*", "*"])]) with
137
: [
new
(sdkSourceKey, [sdkPattern]),
new
("public", ["*"])]) with
169
new
(previousKey, ["Contoso.Hosting.One", "Contoso.Hosting.Keep", "Contoso.Internal.*"]),
170
new
("public", ["*"]),
171
new
("sdk", ["Aspire*"])
212
var settings = CreateSettings([
new
("company-feed", [selectedPattern]),
new
("other", [otherPattern])]);
238
var settings = CreateSettings([
new
("authenticated", ["Contoso.*"]),
new
("anonymous", ["Contoso.*"])]);
264
? [
new
("aspire-daily", ["Aspire.Hosting.Private"]),
new
("aspire-staging", ["Aspire*"])]
293
var settings = CreateSettings([
new
("aspire-daily", ["Aspire.Hosting.Private"])]) with
322
new
("company", ["*"]),
323
new
("aspire-test", ["Aspire*"]),
324
new
("aspire-test-0", ["Aspire*"])
372
new
("company", ["Aspire.Hosting.Redis", "Company.*"]),
373
new
(sourceKey, ["Aspire*", "Private.*"])
408
var settings = CreateSettings([
new
("aspire-test", ["Aspire*"])]) with
431
new
("company", ["Aspire.Hosting.Redis"]),
432
new
("aspire-staging", ["Aspire*"])
465
var settings = CreateSettings([
new
("aspire-staging", ["Aspire*", "Private.*"])]) with
489
var settings = CreateSettings(hasAmbientMappings ? [
new
("company-public", ["*"])] : []);
526
var settings = CreateSettings([
new
("company", ["*"])]);
567
new
("company", ["Aspire*", "Company.*"]),
568
new
("public", ["*"])
571
[], [
new
("PUBLIC", ["*"]),
new
("COMPANY", ["company.*", "ASPIRE*"])], false, [], null)
584
var settings = CreateSettings([
new
("company", ["Aspire*"])]);
585
var overlay = new NuGetConfigOverlay([], [
new
(sourceKey, [pattern])], false, [], null);
595
var settings = CreateSettings([
new
("company", ["Aspire*"])]);
Projects\PrebuiltAppHostServerTests.cs (7)
1610
new
NuGetPackageSourceMapping
(
1613
new
NuGetPackageSourceMapping
("private", ["Microsoft.*"])
1642
new
NuGetPackageSourceMapping
("channel", ["Aspire*"]),
1643
new
NuGetPackageSourceMapping
("private", ["Contoso.*"])
1711
new
NuGetPackageSourceMapping
("mirror", ["Aspire*", "Contoso.*"])
1741
new
NuGetPackageSourceMapping
("mirror", ["*"])
5458
.Select(static mapping => new
NuGetPackageSourceMapping
(mapping.SourceKey, mapping.Patterns))
25 references to NuGetPackageSourceMapping
aspire (14)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (3)
88
var removedMappings = new List<
NuGetPackageSourceMapping
>();
182
IReadOnlyList<
NuGetPackageSourceMapping
> PackageSourceMappings,
183
IReadOnlyList<
NuGetPackageSourceMapping
> RemovedPackageSourceMappings);
DotNet\DotNetAppHostNuGetConfigMerger.cs (1)
233
foreach (
var
removed in configuration.RemovedPackageSourceMappings)
NuGet\BundleNuGetService.cs (1)
43
IReadOnlyList<
NuGetPackageSourceMapping
> PackageSourceMappings,
NuGet\NuGetClient.cs (3)
109
IReadOnlyList<
NuGetPackageSourceMapping
> PackageSourceMappings,
1145
IReadOnlyList<
NuGetPackageSourceMapping
> packageSourceMappings)
1193
foreach (
var
mapping in packageSourceMappings)
NuGet\NuGetConfigurationBuilder.cs (6)
357
public static
NuGetPackageSourceMapping
[] ComposePackageSourceMappings(
359
IReadOnlyList<
NuGetPackageSourceMapping
> ambientMappings,
384
foreach (
var
ambientMapping in ambientMappings)
473
private static
NuGetPackageSourceMapping
[] ResolveAmbientMappingAliases(NuGetSettingsInfo settings)
477
.. settings.PackageSourceMappings.SelectMany<
NuGetPackageSourceMapping
,
NuGetPackageSourceMapping
>(mapping =>
Aspire.Cli.Tests (11)
NuGet\BundleNuGetServiceTests.cs (1)
139
var
mapping = Assert.Single(overlay.PackageSourceMappings);
NuGet\NuGetClientTests.cs (1)
1749
var
mapping = Assert.Single(settings.PackageSourceMappings);
NuGet\NuGetConfigurationTests.cs (7)
152
var
sdkMapping = Assert.Single(overlay.PackageSourceMappings, mapping => mapping.SourceKey == sdkSourceKey);
188
var
removed = Assert.Single(persistence.RemovedPackageSourceMappings);
191
var
added = Assert.Single(persistence.PackageSourceMappings);
455
var
mapping = Assert.Single(persistence.PackageSourceMappings);
476
var
removed = Assert.Single(persistence.RemovedPackageSourceMappings);
509
var
mapping = Assert.Single(persistence.PackageSourceMappings);
649
private static NuGetSettingsInfo CreateSettings(IReadOnlyList<
NuGetPackageSourceMapping
> mappings)
Projects\PrebuiltAppHostServerTests.cs (1)
5505
IReadOnlyList<
NuGetPackageSourceMapping
> mappings,
TestServices\DotNetAppHostNuGetConfigTestHelper.cs (1)
71
private static string FormatMapping(
NuGetPackageSourceMapping
mapping)