32 instantiations of NuGetPackageSourceMapping
aspire (6)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (2)
57
: integrationSources.Select(source => new
NuGetPackageSourceMapping
(source.Key,
100
removedMappings.Add(new
NuGetPackageSourceMapping
(source.Name, obsoletePatterns));
NuGet\NuGetClient.cs (2)
815
.Select(static item => new
NuGetPackageSourceMapping
(
850
.Select(static mapping => new
NuGetPackageSourceMapping
(
NuGet\NuGetConfigurationBuilder.cs (2)
395
.Select(static mapping => new
NuGetPackageSourceMapping
(
418
: aliases.Select(source => new
NuGetPackageSourceMapping
(source.Name, mapping.Patterns)).ToArray();
Aspire.Cli.Tests (26)
NuGet\NuGetClientTests.cs (1)
1606
[
new
("private", ["Aspire.*"])],
NuGet\NuGetConfigurationTests.cs (18)
21
new
("company", ["*"]),
22
new
("aspire-test", ["Aspire*"]),
23
new
("aspire-test-0", ["Aspire*"])
71
new
("company", ["Aspire.Hosting.Redis", "Company.*"]),
72
new
(sourceKey, ["Aspire*", "Private.*"])
107
var settings = CreateSettings([
new
("aspire-test", ["Aspire*"])]) with
130
new
("company", ["Aspire.Hosting.Redis"]),
131
new
("aspire-staging", ["Aspire*"])
164
var settings = CreateSettings([
new
("aspire-staging", ["Aspire*", "Private.*"])]) with
188
var settings = CreateSettings(hasAmbientMappings ? [
new
("company-public", ["*"])] : []);
225
var settings = CreateSettings([
new
("company", ["*"])]);
266
new
("company", ["Aspire*", "Company.*"]),
267
new
("public", ["*"])
270
[], [
new
("PUBLIC", ["*"]),
new
("COMPANY", ["company.*", "ASPIRE*"])], false, [], null)
283
var settings = CreateSettings([
new
("company", ["Aspire*"])]);
284
var overlay = new NuGetConfigOverlay([], [
new
(sourceKey, [pattern])], false, [], null);
294
var settings = CreateSettings([
new
("company", ["Aspire*"])]);
Projects\PrebuiltAppHostServerTests.cs (7)
1491
new
NuGetPackageSourceMapping
(
1494
new
NuGetPackageSourceMapping
("private", ["Microsoft.*"])
1523
new
NuGetPackageSourceMapping
("channel", ["Aspire*"]),
1524
new
NuGetPackageSourceMapping
("private", ["Contoso.*"])
1592
new
NuGetPackageSourceMapping
("mirror", ["Aspire*", "Contoso.*"])
1622
new
NuGetPackageSourceMapping
("mirror", ["*"])
5337
.Select(static mapping => new
NuGetPackageSourceMapping
(mapping.SourceKey, mapping.Patterns))
20 references to NuGetPackageSourceMapping
aspire (13)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (3)
73
var removedMappings = new List<
NuGetPackageSourceMapping
>();
123
IReadOnlyList<
NuGetPackageSourceMapping
> PackageSourceMappings,
124
IReadOnlyList<
NuGetPackageSourceMapping
> RemovedPackageSourceMappings);
NuGet\BundleNuGetService.cs (1)
41
IReadOnlyList<
NuGetPackageSourceMapping
> PackageSourceMappings,
NuGet\NuGetClient.cs (3)
105
IReadOnlyList<
NuGetPackageSourceMapping
> PackageSourceMappings,
1082
IReadOnlyList<
NuGetPackageSourceMapping
> packageSourceMappings)
1130
foreach (
var
mapping in packageSourceMappings)
NuGet\NuGetConfigurationBuilder.cs (6)
297
public static
NuGetPackageSourceMapping
[] ComposePackageSourceMappings(
299
IReadOnlyList<
NuGetPackageSourceMapping
> ambientMappings,
324
foreach (
var
ambientMapping in ambientMappings)
401
private static
NuGetPackageSourceMapping
[] ResolveAmbientMappingAliases(NuGetSettingsInfo settings)
405
.. settings.PackageSourceMappings.SelectMany<
NuGetPackageSourceMapping
,
NuGetPackageSourceMapping
>(mapping =>
Aspire.Cli.Tests (7)
NuGet\NuGetClientTests.cs (1)
1506
var
mapping = Assert.Single(settings.PackageSourceMappings);
NuGet\NuGetConfigurationTests.cs (4)
154
var
mapping = Assert.Single(persistence.PackageSourceMappings);
175
var
removed = Assert.Single(persistence.RemovedPackageSourceMappings);
208
var
mapping = Assert.Single(persistence.PackageSourceMappings);
348
private static NuGetSettingsInfo CreateSettings(IReadOnlyList<
NuGetPackageSourceMapping
> mappings)
Projects\PrebuiltAppHostServerTests.cs (1)
5384
IReadOnlyList<
NuGetPackageSourceMapping
> mappings,
TestServices\DotNetAppHostNuGetConfigTestHelper.cs (1)
71
private static string FormatMapping(
NuGetPackageSourceMapping
mapping)