70 instantiations of PackagingService
Aspire.Cli.Tests (70)
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
527options.PackagingServiceFactory = sp => new PackagingService(
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (1)
27return new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance);
Packaging\PackagingServiceTests.cs (66)
32var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 69var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 144var packagingService = new PackagingService( 204var packagingService = new PackagingService( 240var packagingService = new PackagingService( 279var packagingService = new PackagingService( 308var packagingService = new PackagingService( 380var packagingService = new PackagingService( 436var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 468var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 498var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 525var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 552var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 578var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 603var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 616var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 643var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 673var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 699var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 728var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 749var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 777var packagingService = new PackagingService( 812var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 840var service = new PackagingService( 883var packagingService = new PackagingService( 923var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 962var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 994var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1026var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1057var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1087var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1117var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1146var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1173var packagingService = new PackagingService( 1231var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1280var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1322var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1357var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1394var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1428var packagingService = new PackagingService( 1473var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1505var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1535var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1561var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1595var packagingService = new PackagingService( 1638var packagingService = new PackagingService( 1674var packagingService = new PackagingService( 1707var packagingService = new PackagingService( 1738var packagingService = new PackagingService( 1762var packagingService = new PackagingService( 1794var packagingService = new PackagingService( 1848var packagingService = new PackagingService(executionContext, fakeCache, new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1895var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1947var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1998var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 2043var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2077var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2114var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2145var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2182var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2211var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2240var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2271var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2299var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2329var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2349var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance);
Projects\PrebuiltAppHostServerTests.cs (1)
1343var packagingService = new PackagingService(
Utils\CliTestHelper.cs (1)
670return new PackagingService(executionContext, nuGetPackageCache, features, configuration, NullLogger<PackagingService>.Instance);
184 references to PackagingService
aspire (3)
Packaging\PackagingService.cs (2)
81private readonly ILogger<PackagingService> _logger; 102ILogger<PackagingService> logger,
Program.cs (1)
548builder.Services.AddSingleton<IPackagingService, PackagingService>();
Aspire.Cli.Tests (181)
Commands\InitCommandTests.cs (2)
1804/// the channels produced by <see cref="PackagingService.GetChannelsAsync"/>: <c>default</c> 2375/// shape — not just that one URL appears in the file. The real <see cref="PackagingService"/>
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
532NullLogger<PackagingService>.Instance,
Commands\UpdateCommandTests.cs (1)
2650config[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+2574ef57e97fc393aff67592fd442afca6a6d02f";
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (7)
23private static PackagingService CreatePackagingService(CliExecutionContext executionContext) 27return new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 51var packagingService = CreatePackagingService(executionContext); 101var packagingService = CreatePackagingService(executionContext); 174var packagingService = CreatePackagingService(executionContext); 240var packagingService = CreatePackagingService(executionContext); 306var packagingService = CreatePackagingService(executionContext);
Packaging\PackagingServiceTests.cs (166)
32var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 66[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 69var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 144var packagingService = new PackagingService( 149NullLogger<PackagingService>.Instance, 204var packagingService = new PackagingService( 209NullLogger<PackagingService>.Instance, 240var packagingService = new PackagingService( 245NullLogger<PackagingService>.Instance, 276[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 279var packagingService = new PackagingService( 284NullLogger<PackagingService>.Instance, 307var logger = new CapturingLogger<PackagingService>(); 308var packagingService = new PackagingService( 370settings[PackagingService.OverrideStagingFeedConfigKey] = overrideFeed; 380var packagingService = new PackagingService( 385NullLogger<PackagingService>.Instance, 431[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 432[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 436var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 463[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 464[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0+abcdef1234567890abcdef1234567890abcdef12", 468var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 493[PackagingService.OverrideCliIdentityChannelConfigKey] = "not-a-real-channel", 494[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 498var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 519[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 520[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 521[PackagingService.OverrideStagingFeedConfigKey] = OverrideFeed, 525var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 546[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 547[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 551var logger = new CapturingLogger<PackagingService>(); 552var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 573[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 577var logger = new CapturingLogger<PackagingService>(); 578var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 599[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 603var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 616var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 643var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 673var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 699var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 725[PackagingService.OverrideStagingFeedConfigKey] = overrideUrl 728var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 749var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 777var packagingService = new PackagingService( 782NullLogger<PackagingService>.Instance, 812var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 838[PackagingService.OverrideStagingFeedConfigKey] = stagingSource 840var service = new PackagingService( 841executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 883var packagingService = new PackagingService( 885new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 919[PackagingService.OverrideStagingFeedConfigKey] = testFeedUrl 923var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 958[PackagingService.OverrideStagingFeedConfigKey] = customFeedUrl 962var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 990[PackagingService.OverrideStagingFeedConfigKey] = azureDevOpsFeedUrl 994var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1022[PackagingService.OverrideStagingFeedConfigKey] = invalidFeedUrl 1026var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1052[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1057var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1082[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1087var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1112[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1117var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1142[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 1146var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1169[PackagingService.OverrideStagingFeedConfigKey] = "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-microsoft-aspire-48a11dae/nuget/v3/index.json" 1173var packagingService = new PackagingService( 1178NullLogger<PackagingService>.Instance); 1227[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 1231var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1280var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1322var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1357var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1390[PackagingService.OverrideStagingFeedConfigKey] = customFeed 1394var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1428var packagingService = new PackagingService( 1433NullLogger<PackagingService>.Instance); 1473var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1505var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1530[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1535var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1561var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1595var packagingService = new PackagingService( 1600NullLogger<PackagingService>.Instance, 1638var packagingService = new PackagingService( 1643NullLogger<PackagingService>.Instance, 1674var packagingService = new PackagingService( 1679NullLogger<PackagingService>.Instance, 1707var packagingService = new PackagingService( 1712NullLogger<PackagingService>.Instance, 1738var packagingService = new PackagingService( 1743NullLogger<PackagingService>.Instance, 1762var packagingService = new PackagingService( 1767NullLogger<PackagingService>.Instance, 1794var packagingService = new PackagingService( 1799NullLogger<PackagingService>.Instance, 1810Assert.Null(PackagingService.TryResolvePrInstallPackagesDirectory("bad\0path", "pr-17225")); 1826Assert.Null(PackagingService.TryResolvePrInstallPackagesDirectory(processPath, prChannelName)); 1848var packagingService = new PackagingService(executionContext, fakeCache, new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1895var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1947var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1998var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 2043var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2077var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2114var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2145var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2182var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2211var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2240var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2271var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2299var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2329var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2349var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2365Assert.True(PackagingService.TryParseNupkgFileName(fileName, out var id, out var version)); 2379Assert.False(PackagingService.TryParseNupkgFileName(fileName, out var id, out var version));
Projects\PrebuiltAppHostServerTests.cs (3)
1340[PackagingService.OverrideStagingFeedConfigKey] = overrideStagingFeed 1343var packagingService = new PackagingService( 1348NullLogger<PackagingService>.Instance);
Utils\CliTestHelper.cs (1)
670return new PackagingService(executionContext, nuGetPackageCache, features, configuration, NullLogger<PackagingService>.Instance);