884 references to Instance
aspire (16)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
68: this(appHostSocket, rpc, appHostInfo, isInScope, ImmutableHashSet<string>.Empty, NullLogger.Instance, null)
Bundles\BundleService.cs (1)
454logger ??= NullLogger.Instance;
Certificates\CertificateGeneration\CertificateManager.cs (2)
100: this(NullLogger.Instance, subject, version, version) 1036public CertificateManagerLogger() : this(NullLogger.Instance) { }
ConsoleCancellationManager.cs (1)
111_logger = NullLogger.Instance;
DotNet\ProcessExecutionFactory.cs (2)
52var effectiveLogger = options.SuppressLogging ? (ILogger)NullLogger.Instance : _logger; 90var effectiveLogger = options.SuppressLogging ? (ILogger)NullLogger.Instance : _logger;
Git\GitCommandRunner.cs (2)
291() => null, NullLogger.Instance, cancellationToken); 372() => null, NullLogger.Instance, cancellationToken);
Mcp\Tools\McpToolHelpers.cs (1)
444var connection = await AppHostConnectionHelper.GetSelectedConnectionAsync(auxiliaryBackchannelMonitor, NullLogger.Instance, cancellationToken).ConfigureAwait(false);
Program.cs (1)
1512NullLogger.Instance,
src\Shared\Telemetry\AspireTelemetryBase.cs (3)
20private ILogger _eventLogger = NullLogger.Instance; 48Volatile.Write(ref _eventLogger, eventLogger ?? NullLogger.Instance); 308Volatile.Write(ref _eventLogger, NullLogger.Instance);
src\Shared\Telemetry\TelemetryMetadata.cs (1)
40(startInfo, stdout, stderr) => new ChildProcess(startInfo, NullLogger.Instance,
Utils\ConfigurationHelper.cs (1)
565() => [], NullLogger.Instance, cancellationToken);
Aspire.Cli.Tests (364)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (2)
152return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, timeout, CancellationToken.None).DefaultTimeout(); 155return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, CancellationToken.None).DefaultTimeout();
Backchannel\BackchannelConstantsTests.cs (2)
366NullLogger.Instance) 418NullLogger.Instance)
Backchannel\TrayWatchStreamTests.cs (1)
1104=> new(monitor, identity ?? new TestProcessIdentityProvider(), time, NullLogger.Instance);
Certificates\CertificateFactoryTests.cs (1)
99var manager = CertificateManager.Create(NullLogger.Instance, TestEnvironment.CreateLinux(), nssDbOverride: null);
Certificates\DeveloperCertificateCacheWriteTests.cs (1)
31var certificateManager = new MacOSCertificateManager(NullLogger.Instance);
Certificates\NativeCertificateToolRunnerTests.cs (1)
138: CertificateManager(NullLogger.Instance, CertificateManager.LocalhostHttpsDistinguishedName, version, version)
Certificates\UnixCertificateManagerTests.cs (6)
423var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, startInfo => 469var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, startInfo => 503var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null); 573var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null); 608var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null); 683return new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride);
Commands\AddCommandTests.cs (42)
1262PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 1263PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 1334PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 1335PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance) 1421PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 1422PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, [new PackageMapping("Aspire*", "stable")], stableCache, new TestFeatures(), NullLogger.Instance) 1516PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 1517PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 1647PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 1648PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance) 1789PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 1790PackageChannel.CreateExplicitChannel("test-hive", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "test-hive")], explicitCache, new TestFeatures(), NullLogger.Instance) 2287NullLogger.Instance); 3213var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3261var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3309var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3312var explicitChannel = PackageChannel.CreateExplicitChannel("preview", PackageChannelQuality.Prerelease, mappings, fakeCache, new TestFeatures(), NullLogger.Instance); 3365var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3366var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], fakeCache, new TestFeatures(), NullLogger.Instance); 3401var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 3402var stagingChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], cache, new TestFeatures(), NullLogger.Instance); 3403var dailyChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], cache, new TestFeatures(), NullLogger.Instance); 3404var prChannel = PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], cache, new TestFeatures(), NullLogger.Instance); 3449NullLogger.Instance); 3552PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 3555PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 3556PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 3557PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], prCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion) 3626PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 3627PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 4120PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4179PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4230PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4271NullLogger.Instance, 4343PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4389PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4437PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4484PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4533PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4591PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4645PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 4691PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
Commands\ConfigSourceCommandTests.cs (2)
199[Aspire.Cli.Packaging.PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 1144[Aspire.Cli.Packaging.PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)])
Commands\InitCommandTests.cs (8)
99var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1326var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 1332features: new TestFeatures(), NullLogger.Instance); 1392var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1730var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2076var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2505var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2629features: new TestFeatures(), NullLogger.Instance);
Commands\InstallationInfoOutputTests.cs (1)
42NullLogger.Instance,
Commands\NewCommandChannelResolutionTests.cs (5)
85var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 646var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 663NullLogger.Instance); 713NullLogger.Instance, 738NullLogger.Instance));
Commands\NewCommandLocalTemplateTests.cs (1)
1072new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
125new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
492var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 506NullLogger.Instance); 535NullLogger.Instance));
Commands\NewCommandTests.cs (12)
399var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 400var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 477var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 554var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 1314NullLogger.Instance); 1359NullLogger.Instance); 1940var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 2137var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2212var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2266var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2384var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 3725var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Commands\PsCommandTests.cs (1)
868return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, CancellationToken.None).DefaultTimeout();
Commands\ResourceCommandHelperTests.cs (6)
40NullLogger.Instance, 69NullLogger.Instance, 105NullLogger.Instance, 135NullLogger.Instance, 172NullLogger.Instance, 203NullLogger.Instance,
Commands\TelemetryCommandTests.cs (10)
455NullLogger.Instance, 514NullLogger.Instance, 611factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 628factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 642factory, "http://localhost:18888", "wrong-token", NullLogger.Instance, CancellationToken.None); 656factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 669factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 683factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 704factory, "http://localhost:18888", "my-token", NullLogger.Instance, CancellationToken.None); 724factory, "http://localhost:18888", "my-token", NullLogger.Instance, CancellationToken.None);
Commands\TemplateSourceStartupTests.cs (2)
199NullLogger.Instance, CancellationToken.None)) 250NullLogger.Instance, CancellationToken.None))
Commands\UpdateCommandRepositoryToolsTests.cs (4)
152new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 268new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 495new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 597}, new TestFeatures(), NullLogger.Instance, cliDownloadBaseUrl: "https://example.invalid/cli")
Commands\UpdateCommandTests.cs (33)
346NullLogger.Instance, 645NullLogger.Instance, 724NullLogger.Instance, 801NullLogger.Instance, 967NullLogger.Instance, 1045NullLogger.Instance, 1203NullLogger.Instance, 1207[PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance), prChannel]); 1752var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1753var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1817var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1818var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1871var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1872var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1938var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1939var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 2003var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 2065var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2224PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2282PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2283PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance), 2515var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2516var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2517var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2518var hiveChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3044var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3045var stagingChannel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3046var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3059channels.Add(PackageChannel.CreateExplicitChannel(hive.Name, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3066channels.Add(PackageChannel.CreateExplicitChannel(PackageChannelNames.Local, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3336var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 3337var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 3665NullLogger.Instance,
Configuration\ConfigSourceServiceTests.cs (1)
1679context, new FileInfo(path), NullLogger.Instance, CancellationToken.None))
Configuration\ConfigurationServiceTests.cs (1)
169workspace.CreateExecutionContext(), new FileInfo(path), NullLogger.Instance, CancellationToken.None))
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (1)
137NullLogger.Instance))
Configuration\PrebuiltAppHostServerChannelResolutionTests.cs (1)
110NullLogger.Instance);
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (4)
34private static PackageChannel CreateChannel(PackageMapping[] mappings) => PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 699var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1169new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1784new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
DotNet\DotNetCliRunnerTests.cs (2)
310provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 430new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
DotNet\ProcessScopeTests.cs (3)
26var scope = new ProcessScope(execution, NullLogger.Instance, "test installation"); 55var scope = new ProcessScope(execution, NullLogger.Instance, "cancelled installation"); 81var exception = Assert.Throws<InvalidOperationException>(() => new ProcessScope(execution, NullLogger.Instance, "invalid scope"));
Mcp\AppHostConnectionSelectionLogicTests.cs (10)
165NullLogger.Instance, 176var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken); 193var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken); 219var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken); 227await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken)); 250var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken); 268await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken)); 290NullLogger.Instance, 309NullLogger.Instance, 327await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken));
Mcp\McpToolHelpersTests.cs (1)
247NullLogger.Instance);
Mcp\MockPackagingService.cs (1)
28return Task.FromResult<IEnumerable<PackageChannel>>([PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]);
Mcp\SelectAppHostToolTests.cs (1)
139var selectedConnection = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken);
NuGet\BundleNuGetServiceTests.cs (2)
68new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 179new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
NuGet\NuGetConfigurationQueryTests.cs (3)
59new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 121new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 272new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
NuGet\NuGetConfigurationTests.cs (8)
37new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 63new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 94new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 114new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 276new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 339new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 384new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 414new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
NuGet\NuGetPackagePrefetcherTests.cs (1)
361var channel = PackageChannel.CreateImplicitChannel(packageCache, features, NullLogger.Instance);
Packaging\IntegrationSourceTests.cs (3)
232[PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 413[PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 444[PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)])
Packaging\PackageChannelTests.cs (36)
68new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance) 127var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 147var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 167var channel = PackageChannel.CreateExplicitChannel("pr-10981", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 187var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance, configureGlobalPackagesFolder: true); 203var channel = PackageChannel.CreateExplicitChannel("empty", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 226NullLogger.Instance, 260NullLogger.Instance, 295NullLogger.Instance, 352NullLogger.Instance, 391NullLogger.Instance, 441NullLogger.Instance); 465var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 523var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion); 571var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion); 600NullLogger.Instance, 629var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 674NullLogger.Instance); 715NullLogger.Instance); 760NullLogger.Instance); 915NullLogger.Instance, 946NullLogger.Instance, 970var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 986var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 1002var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 1018var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 1029var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 1043var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, [], cache, new TestFeatures(), NullLogger.Instance); 1060new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1082var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 1099var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 1114var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 1130var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 1149var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 1159var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 1177return PackageChannel.CreateExplicitChannel("local", quality, mappings, cache, features ?? new TestFeatures(), NullLogger.Instance);
Packaging\PackageSourceOverrideMappingsTests.cs (1)
241NullLogger.Instance,
Processes\LauncherLivenessMonitorTests.cs (4)
22var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance); 38await using var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance); 62await using (var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance)) 81var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance);
Projects\AppHostServerProjectTests.cs (6)
494}, nugetCache, new TestFeatures(), NullLogger.Instance); 500}, nugetCache, new TestFeatures(), NullLogger.Instance); 502var implicitChannel = PackageChannel.CreateImplicitChannel(nugetCache, new TestFeatures(), NullLogger.Instance); 587}, nugetCache, new TestFeatures(), NullLogger.Instance); 631}, nugetCache, new TestFeatures(), NullLogger.Instance); 677}, nugetCache, new TestFeatures(), NullLogger.Instance);
Projects\GuestAppHostProjectTests.cs (12)
80new NativeAppHostServerProject(path, executable, new TestProcessExecutionFactory(), NullLogger.Instance)) 1138var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1655features: new TestFeatures(), NullLogger.Instance); 1721features: new TestFeatures(), NullLogger.Instance); 1779features: new TestFeatures(), NullLogger.Instance); 1839NullLogger.Instance); 1893NullLogger.Instance); 2211new NativeAppHostServerProject(path, executable, new TestProcessExecutionFactory(), NullLogger.Instance)) 2339? PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance) 2340: PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 2384var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2474var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\NativeAppHostServerProjectTests.cs (8)
119Path.Combine(workspace.Path, "missing"), new TestProcessExecutionFactory(), NullLogger.Instance)); 128using var project = new NativeAppHostServerProject(workspace.Path, executable, new TestProcessExecutionFactory(), NullLogger.Instance); 151using var project = new NativeAppHostServerProject(workspace.Path, executable, new TestProcessExecutionFactory(), NullLogger.Instance); 190using (var project = new NativeAppHostServerProject(workspace.Path, executable, factory, NullLogger.Instance)) 239using var project = new NativeAppHostServerProject(workspace.Path, executable, processes, NullLogger.Instance); 272using var project = new NativeAppHostServerProject(workspace.Path, executable, factory, NullLogger.Instance) 341using var project = new NativeAppHostServerProject(workspace.Path, executable, factory, NullLogger.Instance) 449new TestProcessExecutionFactory(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (41)
254NullLogger.Instance); 276NullLogger.Instance); 383new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 395CreateContextWithIdentityChannel(channelName, sdkVersion), NullLogger.Instance); 1045NullLogger.Instance); 1090NullLogger.Instance); 1141NullLogger.Instance); 1184NullLogger.Instance); 1191NullLogger.Instance); 1407NullLogger.Instance, 1524NullLogger.Instance, 1920features: new TestFeatures(), NullLogger.Instance); 1950NullLogger.Instance, 2008features: new TestFeatures(), NullLogger.Instance); 2042NullLogger.Instance); 2078NullLogger.Instance); 2132features: new TestFeatures(), NullLogger.Instance); 2201features: new TestFeatures(), NullLogger.Instance); 2223features: new TestFeatures(), NullLogger.Instance); 2245features: new TestFeatures(), NullLogger.Instance); 2330"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2357"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2415NullLogger.Instance); 2430channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2724features: new TestFeatures(), NullLogger.Instance); 2773features: new TestFeatures(), NullLogger.Instance); 2827features: new TestFeatures(), NullLogger.Instance); 2873features: new TestFeatures(), NullLogger.Instance); 2964features: new TestFeatures(), NullLogger.Instance); 3025features: new TestFeatures(), NullLogger.Instance); 3186logger: NullLogger.Instance); 3284logger: NullLogger.Instance, 3453logger: NullLogger.Instance); 3593logger: NullLogger.Instance); 3714NullLogger.Instance); 3799NullLogger.Instance); 3876NullLogger.Instance); 3940NullLogger.Instance); 4206features: new TestFeatures(), NullLogger.Instance); 4381NullLogger.Instance, 4581NullLogger.Instance);
Projects\ProjectUpdaterNuGetConfigurationTests.cs (11)
333provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 492provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 688provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance, 943provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 993provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1106provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1279provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1411provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1550provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1619provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1697provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
Projects\RepositoryToolUpdaterTests.cs (5)
232var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 289var channel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, [], cache, new TestFeatures(), NullLogger.Instance); 624var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 795? PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance) 796: PackageChannel.CreateExplicitChannel(name, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance);
Projects\RunningInstanceManagerTests.cs (1)
48var manager = new RunningInstanceManager(NullLogger.Instance, new TestInteractionService(), TimeProvider.System, new ProfilingTelemetry(new ConfigurationBuilder().Build()));
Scaffolding\PackageJsonMergerTests.cs (1)
16PackageJsonMerger.Merge(existing, scaffold, NullLogger.Instance, toolchainCommand);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
918return new ProcessExecution(startInfo, NullLogger.Instance, options, new TestEnvironment());
Templating\DotNetTemplateFactoryTests.cs (2)
34PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 220var channel = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Templating\TemplateNuGetConfigServiceTests.cs (38)
51new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 97new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 140new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 183new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 227new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 319features: new TestFeatures(), NullLogger.Instance); 459}, new TestFeatures(), NullLogger.Instance); 492var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 519var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 531features: new TestFeatures(), NullLogger.Instance); 594NullLogger.Instance); 643var implicitChannel = PackageChannel.CreateImplicitChannel(packageCache, new TestFeatures(), NullLogger.Instance); 650NullLogger.Instance, 689NullLogger.Instance, 724NullLogger.Instance, 777var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 838}, new TestFeatures(), NullLogger.Instance); 845NullLogger.Instance, 900}, new TestFeatures(), NullLogger.Instance); 907NullLogger.Instance, 915NullLogger.Instance, 923NullLogger.Instance, 963NullLogger.Instance, 1006NullLogger.Instance, 1042NullLogger.Instance, 1077NullLogger.Instance, 1124NullLogger.Instance, 1132NullLogger.Instance, 1170NullLogger.Instance, 1226}, new TestFeatures(), NullLogger.Instance); 1233NullLogger.Instance, 1275var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1285NullLogger.Instance); 1351features: new TestFeatures(), NullLogger.Instance); 1390features: new TestFeatures(), NullLogger.Instance); 1435features: new TestFeatures(), NullLogger.Instance); 1485features: new TestFeatures(), NullLogger.Instance); 1549new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
tests\Shared\Processes\ProcessSupervisorTests.cs (3)
81await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test completion"); 103await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test cancellation"); 122await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test guardian crash");
tests\Shared\Processes\ProcessTestFixture.cs (2)
129TestProcessSignaler.RequestGracefulShutdown(processId, expectedStartTime: null, NullLogger.Instance); 132CreateProcess(startInfo, NullLogger.Instance, options);
TestServices\TestPackagingService.cs (1)
15=> PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Utils\DcpConnectionHealthCheckTests.cs (2)
152CertificateManager.Create(NullLogger.Instance, new HostEnvironment(), nssDbOverride: null), 295var certificateManager = CertificateManager.Create(NullLogger.Instance, new HostEnvironment(), nssDbOverride: null);
Utils\ProcessCaptureRunnerTests.cs (1)
41NullLogger.Instance,
Aspire.Dashboard (5)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
127public static readonly MessageBindable<TMessage> Empty = new MessageBindable<TMessage>() { Logger = NullLogger.Instance };
src\Shared\Telemetry\AspireTelemetryBase.cs (3)
20private ILogger _eventLogger = NullLogger.Instance; 48Volatile.Write(ref _eventLogger, eventLogger ?? NullLogger.Instance); 308Volatile.Write(ref _eventLogger, NullLogger.Instance);
src\Shared\Telemetry\TelemetryMetadata.cs (1)
40(startInfo, stdout, stderr) => new ChildProcess(startInfo, NullLogger.Instance,
Aspire.Dashboard.Components.Tests (14)
Controls\GenAIVisualizerDialogTests.cs (3)
38var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 80var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 145var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Controls\PlotlyChartTests.cs (5)
32var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance }; 122var logger = NullLogger.Instance; 187var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance }; 241var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance }; 291var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Controls\StructuredLogDetailsTests.cs (2)
46var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 79var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Controls\TextVisualizerDialogTests.cs (1)
612var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Layout\ResourcesLayoutCloseTests.cs (1)
379var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Pages\TraceDetailsTests.cs (1)
642var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (40)
ChartDataCalculatorTests.cs (1)
22new() { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Integration\StartupTests.cs (3)
450}, NullLogger.Instance); 507}, NullLogger.Instance); 557}, NullLogger.Instance);
Model\ApplicationsSelectHelpersTests.cs (9)
57var app = appVMs.GetResource(NullLogger.Instance, "multiple-instanceabc", canSelectGrouping: false, null!); 73var app = appVMs.GetResource(NullLogger.Instance, "dotnet-cli-6a764b7d", canSelectGrouping: true, null!); 107Assert.Same(replica, appVMs.GetResource(NullLogger.Instance, replica.Id!.InstanceId, canSelectGrouping, null!)); 122var app = appVMs.GetResource(NullLogger.Instance, "dotnet-cli-6a764b7d", canSelectGrouping: false, null!); 177var app = appVMs.GetResource(NullLogger.Instance, "singleton", canSelectGrouping: false, null!); 194var app = appVMs.GetResource(NullLogger.Instance, "singleton-", canSelectGrouping: false, null!); 215var app = appVMs.GetResource(NullLogger.Instance, name, canSelectGrouping: false, null!); 327var app = appVMs.GetResource(NullLogger.Instance, "app", canSelectGrouping: false, null!); 364var app = appVMs.GetResource(NullLogger.Instance, "app", canSelectGrouping: true, null!);
Model\DashboardClientTests.cs (1)
227return TerminalWebSocketProxy.HandleAppHostTerminalAsync(context, dashboardClient, sessions, NullLogger.Instance, "test");
Model\MetricPinStoreTests.cs (1)
162var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Model\ResourceViewModelTests.cs (1)
458return resource.ToViewModel(replicaIndex: 0, knownPropertyLookup ?? new MockKnownPropertyLookup(), NullLogger.Instance);
Model\SpanDetailsViewModelTests.cs (1)
23var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\SpanWaterfallViewModelTests.cs (4)
20var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 46var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 79var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 105var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TelemetryExportServiceTests.cs (1)
424new OtlpContext { Logger = NullLogger.Instance, Options = new() }));
Model\TraceDetailPageViewModelTests.cs (4)
36var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 69var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 103var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 144var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (7)
18var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 39var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 66var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 93var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 127var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 158var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 179var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\OtlpSpanTests.cs (5)
20var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 71var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 89var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 109var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 173var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (1)
156logger: NullLogger.Instance,
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284Logger = logger ?? NullLogger.Instance
Aspire.Hosting (10)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
127public ILogger Logger { get; init; } = NullLogger.Instance;
ApplicationModel\EnvironmentCallbackContext.cs (1)
47public ILogger Logger { get; set; } = NullLogger.Instance;
ApplicationModel\ResourceExtensions.cs (3)
209.BuildAsync(new(applicationOperation), NullLogger.Instance, CancellationToken.None).ConfigureAwait(false); 253.BuildAsync(new(applicationOperation), NullLogger.Instance, CancellationToken.None).ConfigureAwait(false); 1736NullLogger.Instance,
ApplicationModel\ResourceUrlsCallbackContext.cs (1)
65public ILogger Logger { get; set; } = NullLogger.Instance;
Ats\ExecutionConfigurationExports.cs (1)
49return builder.BuildAsync(executionContext, resourceLogger ?? NullLogger.Instance, cancellationToken);
Pipelines\PipelineConfigurationContext.cs (1)
45internal ILogger Logger { get; init; } = NullLogger.Instance;
Publishing\ManifestPublishingContext.cs (2)
602.BuildAsync(ExecutionContext, NullLogger.Instance, CancellationToken) 640.BuildAsync(ExecutionContext, NullLogger.Instance, CancellationToken)
Aspire.Hosting.Azure.EntraId.Tests (5)
LocalDeveloperCertificateProvisioningTests.cs (3)
33Assert.Equal(initialChecksum, await BicepUtilities.GetCurrentChecksumAsync(entra.Resource, section, builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken)); 37Assert.Equal(initialChecksum, await BicepUtilities.GetCurrentChecksumAsync(entra.Resource, section, builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken)); 47var renewedChecksum = await BicepUtilities.GetCurrentChecksumAsync(entra.Resource, section, builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken);
LocalDeveloperCertificateTests.cs (2)
309.BuildAsync(builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken); 344.BuildAsync(builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken);
Aspire.Hosting.Azure.Kubernetes.Tests (8)
AzureKubernetesInfrastructureTests.cs (8)
1258NullLogger.Instance, 1280NullLogger.Instance, 1304NullLogger.Instance, 1324NullLogger.Instance, 1450NullLogger.Instance, 1545NullLogger.Instance, 1775NullLogger.Instance, 1848NullLogger.Instance,
Aspire.Hosting.Azure.Tests (120)
AzureAppServiceTests.cs (1)
1476NullLogger.Instance,
AzureContainerAppExpressEndpointTests.cs (1)
402app.Services, NullLogger.Instance, TestContext.Current.CancellationToken);
AzureContainerAppsTests.cs (1)
3335NullLogger.Instance,
AzureEnvironmentResourceExtensionsTests.cs (65)
112Logger = NullLogger.Instance, 184Logger = NullLogger.Instance, 309Logger = NullLogger.Instance, 657Logger = NullLogger.Instance, 711Logger = NullLogger.Instance, 1071Logger = NullLogger.Instance, 1152Logger = NullLogger.Instance, 1236Logger = NullLogger.Instance, 1505Logger = NullLogger.Instance, 1569Logger = NullLogger.Instance, 1630Logger = NullLogger.Instance, 1691Logger = NullLogger.Instance, 1826Logger = NullLogger.Instance, 1884Logger = NullLogger.Instance, 1935Logger = NullLogger.Instance, 1947Logger = NullLogger.Instance, 2031Logger = NullLogger.Instance, 2115Logger = NullLogger.Instance, 2209Logger = NullLogger.Instance, 2280Logger = NullLogger.Instance, 2358Logger = NullLogger.Instance, 2372Logger = NullLogger.Instance, 2437Logger = NullLogger.Instance, 2501Logger = NullLogger.Instance, 2555Logger = NullLogger.Instance, 2615Logger = NullLogger.Instance, 2692Logger = NullLogger.Instance, 2706Logger = NullLogger.Instance, 2769Logger = NullLogger.Instance, 2786Logger = NullLogger.Instance, 2867Logger = NullLogger.Instance, 2913Logger = NullLogger.Instance, 2966Logger = NullLogger.Instance, 2980Logger = NullLogger.Instance, 3033Logger = NullLogger.Instance, 3106Logger = NullLogger.Instance, 3159Logger = NullLogger.Instance, 3219Logger = NullLogger.Instance, 3280Logger = NullLogger.Instance, 3350Logger = NullLogger.Instance, 3411Logger = NullLogger.Instance, 3480Logger = NullLogger.Instance, 3537Logger = NullLogger.Instance, 3600Logger = NullLogger.Instance, 3671Logger = NullLogger.Instance, 3726Logger = NullLogger.Instance, 3766Logger = NullLogger.Instance, 3840Logger = NullLogger.Instance, 3888Logger = NullLogger.Instance, 3944Logger = NullLogger.Instance, 4091Logger = NullLogger.Instance, 4170Logger = NullLogger.Instance, 4242Logger = NullLogger.Instance, 4322Logger = NullLogger.Instance, 4396Logger = NullLogger.Instance, 4448Logger = NullLogger.Instance, 4494Logger = NullLogger.Instance, 4540Logger = NullLogger.Instance, 4608Logger = NullLogger.Instance, 4847Logger = NullLogger.Instance, 4899Logger = NullLogger.Instance, 4946Logger = NullLogger.Instance, 4994Logger = NullLogger.Instance, 5132Logger = NullLogger.Instance, 5519NullLogger.Instance,
AzureSandboxesTests.cs (43)
97NullLogger.Instance, 144NullLogger.Instance, 554var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance); 601NullLogger.Instance); 678var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 708var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1082NullLogger.Instance, 1114NullLogger.Instance, 1152NullLogger.Instance, 1221NullLogger.Instance, 1268NullLogger.Instance, 1341var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance, TimeSpan.Zero); 1365NullLogger.Instance, 1415var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1437var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1457var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1482var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1505NullLogger.Instance, 1528NullLogger.Instance, 1554NullLogger.Instance, 1580NullLogger.Instance, 1603NullLogger.Instance, 1665NullLogger.Instance, 1685var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1707var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1730var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1798var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1861var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1912var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1965var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 2017var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 2415NullLogger.Instance, 2431NullLogger.Instance, 2717NullLogger.Instance, 2840NullLogger.Instance, 2999NullLogger.Instance, 3034NullLogger.Instance, 3071NullLogger.Instance, 3226NullLogger.Instance, 3281NullLogger.Instance, 3314NullLogger.Instance, 3378NullLogger.Instance, 3415NullLogger.Instance,
BicepUtilitiesTests.cs (7)
193resource.Resource, cached, builder.ExecutionContext, NullLogger.Instance)); 200resource.Resource, cached, builder.ExecutionContext, NullLogger.Instance); 661var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 677var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 699var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 724var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 762var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
JavaScriptPublishValidationTests.cs (1)
54NullLogger.Instance,
OutputDiffingOrderingTests.cs (1)
38NullLogger.Instance, TestContext.Current.CancellationToken));
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
646: Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance;
Aspire.Hosting.Blazor.Tests (8)
AddBlazorGatewayTests.cs (4)
397NullLogger.Instance, 417projectPath, NullLogger.Instance, TestContext.Current.CancellationToken); 527.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None); 537NullLogger.Instance,
BlazorHostedExtensionsTests.cs (1)
308Logger = Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
EndpointsManifestTransformerTests.cs (2)
275manifests, outputPath, Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance, CancellationToken.None); 339manifests, outputPath, Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance, CancellationToken.None);
WithBlazorAppTests.cs (1)
326Logger = Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
Aspire.Hosting.Browsers.Tests (6)
BrowserPageSessionTests.cs (6)
56new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance), 114new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance), 154new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance), 184new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance), 222new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance), 300new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
Aspire.Hosting.DevTunnels.Tests (11)
DevTunnelAccessStatusTests.cs (8)
16Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 26Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 36Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 49Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 61Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 74Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 87Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now)); 104Assert.Equal(expected, status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
DevTunnelResourceBuilderExtensionsTests.cs (3)
614Logger = NullLogger.Instance 668Logger = NullLogger.Instance 718Logger = NullLogger.Instance
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
112var context = new DockerComposeEnvironmentContext(environment.Resource, NullLogger.Instance);
OutputDiffingOrderingTests.cs (1)
38NullLogger.Instance, TestContext.Current.CancellationToken));
Aspire.Hosting.Dotnet.Tests (27)
DotnetProjectBuildArtifactManagerTests.cs (1)
203manager.PublishAndLeaseAsync(hash, [1, 2, 3], NullLogger.Instance, TestContext.Current.CancellationToken);
DotnetProjectBuildCoordinatorTests.cs (23)
414NullLogger.Instance, 533NullLogger.Instance, 684NullLogger.Instance, 687NullLogger.Instance, 776build.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 909var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 948NullLogger.Instance, 1001NullLogger.Instance, 1047var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 1065var unifiedPath = await unified.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 1066var individualPath = await individual.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 1291buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 1798NullLogger.Instance, 3064NullLogger.Instance, 3113buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 3259NullLogger.Instance, 3292NullLogger.Instance, 3325NullLogger.Instance, 3499() => buildResource.WriteBuildProjectAsync(NullLogger.Instance, canceledCts.Token)); 3501var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 4062Logger = NullLogger.Instance, 4614var path = await resource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 5063.BuildAsync(executionContext, NullLogger.Instance, cancellationToken);
DotnetProjectBuildEnvironmentTests.cs (2)
25NullLogger.Instance, 62NullLogger.Instance,
DotnetProjectRunPropertiesResolverTests.cs (1)
76NullLogger.Instance,
Aspire.Hosting.EntityFrameworkCore.Tests (8)
EFBuildReadinessTests.cs (2)
181migrations.Resource, NullLogger.Instance, TestContext.Current.CancellationToken, app.Services, tool.Resource); 205migrations.Resource, NullLogger.Instance, TestContext.Current.CancellationToken, app.Services, tool.Resource);
EFCoreOperationExecutorTests.cs (4)
147NullLogger.Instance, 168NullLogger.Instance, 194NullLogger.Instance, 203NullLogger.Instance,
EFMigrationPipelineTests.cs (1)
866NullLogger.Instance,
EFOutputDiffingTests.cs (1)
134NullLogger.Instance, TestContext.Current.CancellationToken));
Aspire.Hosting.Foundry.Tests (10)
HostedAgentExtensionTests.cs (7)
430NullLogger.Instance, 597NullLogger.Instance, 624NullLogger.Instance, 647NullLogger.Instance, 690NullLogger.Instance, 722NullLogger.Instance, 745NullLogger.Instance,
PromptAgentTests.cs (2)
192Logger = NullLogger.Instance, 689NullLogger.Instance,
ToolboxTests.cs (1)
945return new PipelineContext(model, execContext, app.Services, NullLogger.Instance, CancellationToken.None);
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
541.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None); 549NullLogger.Instance,
Aspire.Hosting.Kubernetes.Tests (7)
CertManagerTests.cs (4)
129NullLogger.Instance, TestContext.Current.CancellationToken); 354NullLogger.Instance, TestContext.Current.CancellationToken); 490NullLogger.Instance, 533NullLogger.Instance,
KubernetesHelmChartTests.cs (1)
515Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
OutputDiffingOrderingTests.cs (1)
38NullLogger.Instance, TestContext.Current.CancellationToken));
PipelineStepTestHelpers.cs (1)
58NullLogger.Instance,
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.Hosting.Native.Client (1)
Authoring\NativeApplication.cs (1)
25public ILogger Logger { get; init; } = NullLogger.Instance;
Aspire.Hosting.Native.Core.Tests (29)
NativeAuxiliaryBackchannelTests.cs (3)
28var rpc = new RecordingBackchannelRpc(new NativeBackchannelRpc(options, NullLogger.Instance)); 61var implementation = new RecordingBackchannelRpc(new NativeBackchannelRpc(options, NullLogger.Instance)); 163Environment.ProcessId, NullLogger.Instance));
NativeCliProtocolTests.cs (4)
102var rpc = new RecordingBackchannelRpc(new NativeBackchannelRpc(options, NullLogger.Instance)); 141var rpc = new NativeBackchannelRpc(new(), NullLogger.Instance); 161var rpc = new RecordingBackchannelRpc(new NativeBackchannelRpc(options, NullLogger.Instance)); 256new NativeCliLogBuffer(options.RetainedAppHostLogEntries), options, new NativeBackchannelRpc(options, NullLogger.Instance));
NativeFramingTests.cs (1)
67using var peer = new NativeRpcPeer(stream, new NativeServerOptions(), NullLogger.Instance);
NativeIpcSecurityTests.cs (1)
46using var rpc = new NativeRpcListener(new UnixDomainSocketEndPoint(rpcDirectory.SocketPath), Token, NullLogger.Instance);
NativeNamedPipeTests.cs (4)
20Token, NullLogger.Instance); 44new NamedPipeEndPoint("aspire-v2-test", "remote-host"), Token, NullLogger.Instance)); 51using var listener = new NativeRpcListener(endpoint, Token, NullLogger.Instance); 52Assert.Throws<UnauthorizedAccessException>(() => new NativeRpcListener(endpoint, Token, NullLogger.Instance));
NativeProviderActivationTests.cs (2)
25NullLogger.Instance, TestContext.Current.CancellationToken); 56new NativeProviderActivationOptions(), TimeProvider.System, NullLogger.Instance, TestContext.Current.CancellationToken));
NativeProviderClientTests.cs (1)
107var provider = new NativeProviderHost(configuration, TimeProvider.System, NullLogger.Instance);
NativeSocketIsolationTests.cs (7)
28using var listener = new NativeRpcListener(new IPEndPoint(IPAddress.Loopback, 0), Token, NullLogger.Instance, 267Assert.Throws<IOException>(() => new NativeRpcListener(new UnixDomainSocketEndPoint(directory.SocketPath), Token, NullLogger.Instance)); 281var first = new NativeRpcListener(endPoint, Token, NullLogger.Instance); 285Assert.Throws<SocketException>(() => new NativeRpcListener(endPoint, Token, NullLogger.Instance)); 293using var replacement = new NativeRpcListener(endPoint, Token, NullLogger.Instance); 309using var listener = new NativeRpcListener(endPoint, Token, NullLogger.Instance); 318using var replacement = new NativeRpcListener(endPoint, Token, NullLogger.Instance);
TestServices\NativeAuxiliaryTestHost.cs (2)
35: this(server, options, new NativeBackchannelRpc(options, NullLogger.Instance)) 57rpc, NullLogger.Instance);
TestServices\NativeClientTestHost.cs (2)
100? new NativeRpcListener(new IPEndPoint(IPAddress.Loopback, 0), host.Token, NullLogger.Instance) 101: new NativeRpcListener(new IPEndPoint(IPAddress.Loopback, 0), host.Token, NullLogger.Instance,
TestServices\NativeCliTestHost.cs (1)
49new NativeBackchannelRpc(options, NullLogger.Instance));
TestServices\NativeSocketTestHost.cs (1)
26: this((stream, token) => new NativeBackchannelRpc(new NativeServerOptions(), NullLogger.Instance)
Aspire.Hosting.Native.Server (4)
Dcp\DcpApiClient.cs (1)
38public DcpApiClient(NativeServerOptions options) : this(options, NullLogger.Instance)
Dcp\DcpWorkloadExecutor.cs (1)
18: this(client, startup, options, NullLogger.Instance)
Rpc\NativeRpcConnection.cs (2)
242: this(token, server, ownsServer: false, languages, options, NullLogger.Instance) 253NativeServerOptions options) : this(token, server, ownsServer, languages, options, NullLogger.Instance)
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.Hosting.Radius (4)
CloudProviders\AwsRadiusProviderBuilder.cs (1)
24_logger = logger ?? NullLogger.Instance;
CloudProviders\AzureRadiusProviderBuilder.cs (1)
25_logger = logger ?? NullLogger.Instance;
Publishing\RadiusBicepPublishingContext.cs (2)
124logger ??= Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance; 135logger ??= Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance;
Aspire.Hosting.Radius.Tests (28)
Deployment\ControlPlaneVersionGateTests.cs (5)
223NullLogger.Instance, 244NullLogger.Instance, 264NullLogger.Instance, 295NullLogger.Instance, kubeContext: null, ThrowingRunner, CancellationToken.None); 315NullLogger.Instance,
OutputDiffingOrderingTests.cs (1)
38NullLogger.Instance, TestContext.Current.CancellationToken));
Publishing\ProviderScopeBicepEmissionTests.cs (4)
34var bicep = ctx.GenerateBicep(model, NullLogger.Instance); 58var bicep = ctx.GenerateBicep(model, NullLogger.Instance); 88var bicep = ctx.GenerateBicep(model, NullLogger.Instance); 116var bicep = ctx.GenerateBicep(model, NullLogger.Instance);
Publishing\RadiusDeployParametersTests.cs (15)
50new ResourceTypeMapper(NullLogger.Instance), NullLogger.Instance); 76new ResourceTypeMapper(NullLogger.Instance), NullLogger.Instance); 88await Verify(BicepPostProcessor.CompileBicep(options, "myenv", NullLogger.Instance), "bicep"); 107new ResourceTypeMapper(NullLogger.Instance), NullLogger.Instance); 121await Assert.ThrowsAsync<MissingParameterValueException>(() => step.WriteDeployParametersFileAsync(NullLogger.Instance, default)); 126var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default); 130await Verify(BicepPostProcessor.CompileBicep(options, "myenv", NullLogger.Instance), "bicep") 135RadiusDeploymentPipelineStep.DeleteDeployParametersFile(path, NullLogger.Instance); 184var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default); 209RadiusDeploymentPipelineStep.DeleteDeployParametersFile(path, NullLogger.Instance); 236var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default); 256() => step.WriteDeployParametersFileAsync(NullLogger.Instance, default));
Publishing\SealedSecretPublishTests.cs (3)
156copyMethod.Invoke(null, [options, outputDir, NullLogger.Instance]); 184copyMethod.Invoke(null, [BuildOptionsForStore("db-creds", manifestA), outputDir, NullLogger.Instance]); 188copyMethod.Invoke(null, [BuildOptionsForStore("cache-creds", manifestB), outputDir, NullLogger.Instance]);
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.Hosting.RemoteHost.Tests (8)
IntegrationLoadContextTests.cs (3)
18var alc = new IntegrationLoadContext([AppContext.BaseDirectory], NullLogger.Instance); 31var alc = new IntegrationLoadContext([AppContext.BaseDirectory], NullLogger.Instance); 56var alc = new IntegrationLoadContext([], probeManifest, NullLogger.Instance);
tests\Shared\Processes\ProcessSupervisorTests.cs (3)
81await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test completion"); 103await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test cancellation"); 122await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test guardian crash");
tests\Shared\Processes\ProcessTestFixture.cs (2)
129TestProcessSignaler.RequestGracefulShutdown(processId, expectedStartTime: null, NullLogger.Instance); 132CreateProcess(startInfo, NullLogger.Instance, options);
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.Hosting.Tests (85)
Backchannel\AuxiliaryBackchannelTests.cs (4)
693Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); 726Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); 757Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); 799Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance);
Dashboard\DashboardServiceTests.cs (1)
1619await using var catalog = new ResourceTerminalCatalog(new DistributedApplicationModel([resource]), NullLogger.Instance);
Dcp\ExecutableLaunchPlanTests.cs (1)
311NullLogger.Instance,
Dcp\KubernetesServiceTests.cs (5)
588var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 647var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 697var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 867var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 916var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance);
Dcp\ResourceLogSourceTests.cs (2)
43NullLogger.Instance, 86NullLogger.Instance,
DotnetProgramPublishingTests.cs (2)
220NullLogger.Instance, 531NullLogger.Instance,
ExecutableResourceBuilderExtensionTests.cs (2)
230NullLogger.Instance); 414NullLogger.Instance);
ExecutionConfigurationGathererTests.cs (32)
39await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 62await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 82await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 106await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 136.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 138.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 167await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 190await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 210await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 234await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 257await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 290await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 292var result = await context.ResolveAsync(consumer, NullLogger.Instance, builder.ExecutionContext); 308NullLogger.Instance, 335await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 374await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 402await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 432await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 460await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 482await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 508await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 542await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 572await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 608await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 668await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 730await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 765await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 799await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 829await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 849await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 872await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 916await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
Pipelines\PipelineOutputDiffingLifetimeTests.cs (2)
128NullLogger.Instance, TestContext.Current.CancellationToken); 164NullLogger.Instance, TestContext.Current.CancellationToken);
Pipelines\PipelineOutputDiffingTests.cs (3)
279NullLogger.Instance, TestContext.Current.CancellationToken); 316NullLogger.Instance, TestContext.Current.CancellationToken); 1063NullLogger.Instance, TestContext.Current.CancellationToken));
Pipelines\PipelineOutputResolutionTests.cs (1)
203NullLogger.Instance, TestContext.Current.CancellationToken);
ProjectResourceBuilderExtensionTests.cs (12)
160.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 188.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 190.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 211.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 253.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 341.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 345.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 389.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 424.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 461.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 498.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 500.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
Publishing\DotnetProgramArchiveTests.cs (1)
493NullLogger.Instance,
ResourceCommandAnnotationTests.cs (1)
204Logger = NullLogger.Instance
Terminals\ResourceAspireTerminalTests.cs (7)
37await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", host.SocketPath, NullLogger.Instance).Handle; 57await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", host.SocketPath, NullLogger.Instance).Handle; 71await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", missingSocket, NullLogger.Instance).Handle; 81var terminal = new ResourceAspireTerminal("resource:test:0", "test", Path.Combine(_socketDirectory, "unused.sock"), NullLogger.Instance).Handle; 94await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", socketPath, NullLogger.Instance).Handle; 111await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", socketPath, NullLogger.Instance).Handle; 131await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", socketPath, NullLogger.Instance).Handle;
Terminals\ResourceTerminalCatalogTests.cs (2)
63await using var catalog = new ResourceTerminalCatalog(model, NullLogger.Instance); 259=> CreateCatalogAsync(builder, NullLogger.Instance);
Terminals\TerminalKeyInputTests.cs (1)
41? new ResourceAspireTerminal("resource:keys:0", "Keys", host.SocketPath, NullLogger.Instance).Handle
VersionChecking\PackageUpdateHelpersTests.cs (5)
56var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages); 104var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages); 152var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(10, prerelease: ["dev"]), packages); 166var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages); 214var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
WithUrlsTests.cs (1)
314ILogger logger = NullLogger.Instance;
Aspire.Hosting.TestUtilities (3)
Utils\ArgumentEvaluator.cs (1)
21.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None)
Utils\EnvironmentVariableEvaluator.cs (1)
23.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None);
Utils\TerminalCommandTestHelpers.cs (1)
28Logger = NullLogger.Instance
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
255NullLogger.Instance.BeginScope(state);
Aspire.TerminalHost.Tests (2)
TerminalHostAppTests.cs (2)
1231control, new TerminalHostControlRpcTarget(app), NullLogger.Instance); 1376control, new TerminalHostControlRpcTarget(app), NullLogger.Instance);
Aspire.TestUtilities (1)
TestLoggerFactory.cs (1)
20return NullLogger.Instance;
Microsoft.AspNetCore.Components.AI (3)
Engine\UIAgent.cs (2)
100_logger = (ILogger?)loggerFactory?.CreateLogger<BlockMappingPipeline>() ?? NullLogger.Instance; 108_logger = (ILogger?)loggerFactory?.CreateLogger<BlockMappingPipeline>() ?? NullLogger.Instance;
Pipeline\BlockMappingPipeline.cs (1)
24_logger = logger ?? NullLogger.Instance;
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyMiddleware.cs (1)
51_logger = NullLogger.Instance;
Microsoft.AspNetCore.DataProtection (1)
LoggingServiceProviderExtensions.cs (1)
40return services?.GetService<ILoggerFactory>()?.CreateLogger(type.FullName!) ?? NullLogger.Instance;
Microsoft.AspNetCore.Hosting (1)
Internal\WebHost.cs (1)
39private ILogger _logger = NullLogger.Instance;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
97_logger = logger ?? NullLogger.Instance;
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\WebSocketsTransport.cs (1)
78_logger = loggerFactory?.CreateLogger(typeof(WebSocketsTransport)) ?? NullLogger.Instance;
Microsoft.AspNetCore.HttpLogging (2)
ResponseBufferingStream.cs (2)
33: base(Stream.Null, NullLogger.Instance) 70_logger = NullLogger.Instance;
Microsoft.AspNetCore.Rewrite (1)
RewriteContext.cs (1)
30public ILogger Logger { get; set; } = NullLogger.Instance;
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\LoggerFinder.cs (1)
21: NullLogger.Instance;
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
91_logger = (ILogger?)loggerFactory?.CreateLogger<FunctionInvokingChatClient>() ?? NullLogger.Instance;
Realtime\FunctionInvokingRealtimeClientSession.cs (1)
87_logger = (ILogger?)loggerFactory?.CreateLogger<FunctionInvokingRealtimeClientSession>() ?? NullLogger.Instance;
Microsoft.Extensions.AI.Tests (9)
ChatCompletion\LoggingChatClientTests.cs (1)
20Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingChatClient(null!, NullLogger.Instance));
Embeddings\LoggingEmbeddingGeneratorTests.cs (1)
19Assert.Throws<ArgumentNullException>("innerGenerator", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(null!, NullLogger.Instance));
Files\LoggingHostedFileClientTests.cs (1)
23Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingHostedFileClient(null!, NullLogger.Instance));
Image\LoggingImageGeneratorTests.cs (1)
20Assert.Throws<ArgumentNullException>("innerGenerator", () => new LoggingImageGenerator(null!, NullLogger.Instance));
Realtime\LoggingRealtimeClientTests.cs (3)
24Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingRealtimeClient(null!, NullLogger.Instance)); 437using var client = new LoggingRealtimeClient(innerClient, NullLogger.Instance); 447using var client = new LoggingRealtimeClient(innerClient, NullLogger.Instance);
SpeechToText\LoggingSpeechToTextClientTests.cs (1)
22Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingSpeechToTextClient(null!, NullLogger.Instance));
TextToSpeech\LoggingTextToSpeechClientTests.cs (1)
20Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingTextToSpeechClient(null!, NullLogger.Instance));
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
77_logger = services.GetService<ILoggerFactory>()?.CreateLogger(typeof(HybridCache)) ?? NullLogger.Instance;
Microsoft.Extensions.Caching.Hybrid.Tests (4)
BufferReleaseTests.cs (3)
250Assert.True(obj.TryGetValue(NullLogger.Instance, out var value)); 279Assert.True(obj.TryGetValue(NullLogger.Instance, out var value)); 289Assert.False(obj.TryGetValue(NullLogger.Instance, out _));
StampedeTests.cs (1)
564Assert.Null(await stampede.JoinAsync(NullLogger.Instance, CancellationToken.None));
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
222if (loggerInformation.Logger != NullLogger.Instance)
Microsoft.Extensions.Logging.Abstractions (2)
NullLoggerFactory.cs (1)
28return NullLogger.Instance;
NullLoggerProvider.cs (1)
23return NullLogger.Instance;
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
39var watcher = new ServiceEndpointWatcher([], NullLogger.Instance, "foo", TimeProvider.System, Options.Options.Create(new ServiceDiscoveryOptions()));
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLoggerFactory.cs (1)
230if (loggerInformation.Logger != NullLogger.Instance)
Microsoft.Maui (3)
Hosting\MauiAppBuilder.cs (1)
187 public ILogger CreateLogger(string categoryName) => NullLogger.Instance;
Hosting\ServiceProviderExtensions.cs (2)
15 context.Services.GetService<ILoggerFactory>()?.CreateLogger(type) ?? NullLogger.Instance; 27 services.GetService<ILoggerFactory>()?.CreateLogger(type) ?? NullLogger.Instance;
Microsoft.Maui.Maps (2)
src\Core\src\Hosting\ServiceProviderExtensions.cs (2)
15 context.Services.GetService<ILoggerFactory>()?.CreateLogger(type) ?? NullLogger.Instance; 27 services.GetService<ILoggerFactory>()?.CreateLogger(type) ?? NullLogger.Instance;
NativeIntegrations.AppHost.Sample (1)
Program.cs (1)
15args[1], [], new NativeProviderActivationOptions(), clock, NullLogger.Instance, CancellationToken.None);
NativeIntegrations.Provider (1)
Program.cs (1)
11var host = new NativeProviderHost(configuration, TimeProvider.System, NullLogger.Instance);
NativeIntegrations.Redis.Provider (1)
Program.cs (1)
48var host = new NativeProviderHost(configuration, TimeProvider.System, NullLogger.Instance);