1 instantiation of NullLogger
Microsoft.Extensions.Logging.Abstractions (1)
NullLogger.cs (1)
16public static NullLogger Instance { get; } = new NullLogger();
586 references to NullLogger
aspire (8)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
68: this(appHostSocket, rpc, appHostInfo, isInScope, ImmutableHashSet<string>.Empty, NullLogger.Instance, null)
Bundles\BundleService.cs (1)
453logger ??= NullLogger.Instance;
Certificates\CertificateGeneration\CertificateManager.cs (2)
103: this(NullLogger.Instance, subject, version, version) 1094public CertificateManagerLogger() : this(NullLogger.Instance) { }
ConsoleCancellationManager.cs (1)
111_logger = NullLogger.Instance;
DotNet\ProcessExecutionFactory.cs (2)
51var effectiveLogger = options.SuppressLogging ? (ILogger)NullLogger.Instance : _logger; 105var effectiveLogger = options.SuppressLogging ? (ILogger)NullLogger.Instance : _logger;
Mcp\Tools\McpToolHelpers.cs (1)
197var connection = await AppHostConnectionHelper.GetSelectedConnectionAsync(auxiliaryBackchannelMonitor, NullLogger.Instance, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (245)
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)
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 (5)
39var manager = new UnixCertificateManager(NullLogger.Instance, environment, _ => new ProcessStartInfo(certUtilFile.FullName) 86var manager = new UnixCertificateManager(NullLogger.Instance, environment, _ => new ProcessStartInfo(certUtilFile.FullName) 121var manager = new UnixCertificateManager(NullLogger.Instance, environment); 191var manager = new UnixCertificateManager(NullLogger.Instance, environment); 226var manager = new UnixCertificateManager(NullLogger.Instance, environment);
Commands\AddCommandTests.cs (39)
423PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 424PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 495PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 496PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance) 582PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 583PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, [new PackageMapping("Aspire*", "stable")], stableCache, new TestFeatures(), NullLogger.Instance) 677PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 678PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 788PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 789PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance) 930PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 931PackageChannel.CreateExplicitChannel("test-hive", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "test-hive")], explicitCache, new TestFeatures(), NullLogger.Instance) 2218var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2266var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2314var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2317var explicitChannel = PackageChannel.CreateExplicitChannel("preview", PackageChannelQuality.Prerelease, mappings, fakeCache, new TestFeatures(), NullLogger.Instance); 2370var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2371var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], fakeCache, new TestFeatures(), NullLogger.Instance); 2406var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 2407var stagingChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], cache, new TestFeatures(), NullLogger.Instance); 2408var dailyChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], cache, new TestFeatures(), NullLogger.Instance); 2409var prChannel = PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], cache, new TestFeatures(), NullLogger.Instance); 2454NullLogger.Instance); 2557PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 2560PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 2561PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 2562PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], prCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion) 2631PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 2632PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 3037PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3087PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3137PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3183PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3231PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3278PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3327PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3385PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3439PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3485PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
Commands\InitCommandTests.cs (8)
48var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1010var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 1016features: new TestFeatures(), NullLogger.Instance); 1076var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1414var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1759var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2193var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2317features: new TestFeatures(), NullLogger.Instance);
Commands\InstallationInfoOutputTests.cs (1)
42NullLogger.Instance,
Commands\NewCommandChannelResolutionTests.cs (5)
84var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 645var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 662NullLogger.Instance); 712NullLogger.Instance, 737NullLogger.Instance));
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
416var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 430NullLogger.Instance); 459NullLogger.Instance));
Commands\NewCommandTests.cs (12)
366var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 367var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 444var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 521var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 1232NullLogger.Instance); 1277NullLogger.Instance); 1786var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 1983var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2058var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2112var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2223var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 3545var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Commands\PsCommandTests.cs (1)
794return 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 (8)
395factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 412factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 426factory, "http://localhost:18888", "wrong-token", NullLogger.Instance, CancellationToken.None); 440factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 453factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 467factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None); 488factory, "http://localhost:18888", "my-token", NullLogger.Instance, CancellationToken.None); 508factory, "http://localhost:18888", "my-token", NullLogger.Instance, CancellationToken.None);
Commands\UpdateCommandTests.cs (32)
346NullLogger.Instance, 593NullLogger.Instance, 672NullLogger.Instance, 749NullLogger.Instance, 915NullLogger.Instance, 993NullLogger.Instance, 1151NullLogger.Instance, 1699var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1700var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1764var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1765var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1818var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1819var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1885var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 1886var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 1946var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 2008var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2163PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2221PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2222PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance), 2449var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2450var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2451var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2452var hiveChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2862var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2863var stagingChannel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2864var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2877channels.Add(PackageChannel.CreateExplicitChannel(hive.Name, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 2884channels.Add(PackageChannel.CreateExplicitChannel(PackageChannelNames.Local, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3154var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance); 3155var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance); 3483NullLogger.Instance,
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (1)
137NullLogger.Instance))
Configuration\PrebuiltAppHostServerChannelResolutionTests.cs (1)
112NullLogger.Instance);
Mcp\MockPackagingService.cs (1)
28return Task.FromResult<IEnumerable<PackageChannel>>([PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]);
NuGet\NuGetPackagePrefetcherTests.cs (1)
358var channel = PackageChannel.CreateImplicitChannel(packageCache, features, NullLogger.Instance);
Packaging\NuGetConfigMergerTests.cs (2)
29private static PackageChannel CreateChannel(PackageMapping[] mappings) => PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 194var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Packaging\PackageChannelTests.cs (33)
24var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 44var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 64var channel = PackageChannel.CreateExplicitChannel("pr-10981", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 84var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance, configureGlobalPackagesFolder: true); 100var channel = PackageChannel.CreateExplicitChannel("empty", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 123NullLogger.Instance, 157NullLogger.Instance, 198NullLogger.Instance, 237NullLogger.Instance, 287NullLogger.Instance); 311var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 369var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion); 417var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion); 446NullLogger.Instance, 475var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 520NullLogger.Instance); 561NullLogger.Instance); 606NullLogger.Instance); 761NullLogger.Instance, 792NullLogger.Instance, 816var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 832var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 848var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 864var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 875var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 889var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, [], cache, new TestFeatures(), NullLogger.Instance); 912var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 929var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 944var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 960var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 979var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 989var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 1007return PackageChannel.CreateExplicitChannel("local", quality, mappings, cache, features ?? new TestFeatures(), NullLogger.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 (5)
343}, nugetCache, new TestFeatures(), NullLogger.Instance); 349}, nugetCache, new TestFeatures(), NullLogger.Instance); 351var implicitChannel = PackageChannel.CreateImplicitChannel(nugetCache, new TestFeatures(), NullLogger.Instance); 436}, nugetCache, new TestFeatures(), NullLogger.Instance); 490}, nugetCache, new TestFeatures(), NullLogger.Instance);
Projects\GuestAppHostProjectTests.cs (6)
748var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 872features: new TestFeatures(), NullLogger.Instance); 927features: new TestFeatures(), NullLogger.Instance); 983features: new TestFeatures(), NullLogger.Instance); 1351var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1440var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (25)
87Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance)); 96Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance)); 105Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "new-fingerprint", NullLogger.Instance)); 114Assert.True(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance)); 753NullLogger.Instance, 899features: new TestFeatures(), NullLogger.Instance); 926NullLogger.Instance, 975features: new TestFeatures(), NullLogger.Instance); 1021features: new TestFeatures(), NullLogger.Instance); 1075features: new TestFeatures(), NullLogger.Instance); 1097features: new TestFeatures(), NullLogger.Instance); 1121features: new TestFeatures(), NullLogger.Instance); 1215"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1244"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1298NullLogger.Instance); 1313channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1575features: new TestFeatures(), NullLogger.Instance); 1634features: new TestFeatures(), NullLogger.Instance); 1698features: new TestFeatures(), NullLogger.Instance); 1753features: new TestFeatures(), NullLogger.Instance); 1868features: new TestFeatures(), NullLogger.Instance); 1937features: new TestFeatures(), NullLogger.Instance); 2119features: new TestFeatures(), NullLogger.Instance); 2187features: new TestFeatures(), NullLogger.Instance); 2338NullLogger.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\TelemetryFixture.cs (1)
26/// <param name="logger">Optional logger. Uses <see cref="NullLogger"/> if not specified.</param>
Templating\DotNetTemplateFactoryTests.cs (2)
35PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 222var channel = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Templating\TemplateNuGetConfigServiceTests.cs (32)
93features: new TestFeatures(), NullLogger.Instance); 229}, new TestFeatures(), NullLogger.Instance); 262var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 289var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 301features: new TestFeatures(), NullLogger.Instance); 364NullLogger.Instance); 413var implicitChannel = PackageChannel.CreateImplicitChannel(packageCache, new TestFeatures(), NullLogger.Instance); 420NullLogger.Instance, 459NullLogger.Instance, 494NullLogger.Instance, 547var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 608}, new TestFeatures(), NullLogger.Instance); 615NullLogger.Instance, 670}, new TestFeatures(), NullLogger.Instance); 677NullLogger.Instance, 685NullLogger.Instance, 693NullLogger.Instance, 733NullLogger.Instance, 776NullLogger.Instance, 812NullLogger.Instance, 847NullLogger.Instance, 894NullLogger.Instance, 902NullLogger.Instance, 940NullLogger.Instance, 996}, new TestFeatures(), NullLogger.Instance); 1003NullLogger.Instance, 1045var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1055NullLogger.Instance); 1113features: new TestFeatures(), NullLogger.Instance); 1151features: new TestFeatures(), NullLogger.Instance); 1196features: new TestFeatures(), NullLogger.Instance); 1253features: new TestFeatures(), NullLogger.Instance);
TestServices\TestPackagingService.cs (1)
32var testChannel = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Utils\DcpConnectionHealthCheckTests.cs (2)
85CertificateManager.Create(NullLogger.Instance, new HostEnvironment()), 226var certificateManager = CertificateManager.Create(NullLogger.Instance, new HostEnvironment());
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
130public static readonly MessageBindable<TMessage> Empty = new MessageBindable<TMessage>() { Logger = NullLogger.Instance };
Aspire.Dashboard.Components.Tests (8)
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 (2)
62var logger = NullLogger.Instance;
Controls\StructuredLogDetailsTests.cs (1)
27var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Pages\TraceDetailsTests.cs (1)
512var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
263Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (34)
ChartDataCalculatorTests.cs (1)
21new() { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Integration\StartupTests.cs (3)
401}, NullLogger.Instance); 458}, NullLogger.Instance); 508}, NullLogger.Instance);
Model\ApplicationsSelectHelpersTests.cs (6)
57var app = appVMs.GetResource(NullLogger.Instance, "multiple-instanceabc", canSelectGrouping: false, null!); 74var app = appVMs.GetResource(NullLogger.Instance, "singleton", canSelectGrouping: false, null!); 91var app = appVMs.GetResource(NullLogger.Instance, "singleton-", canSelectGrouping: false, null!); 112var app = appVMs.GetResource(NullLogger.Instance, name, canSelectGrouping: false, null!); 224var app = appVMs.GetResource(NullLogger.Instance, "app", canSelectGrouping: false, null!); 261var app = appVMs.GetResource(NullLogger.Instance, "app", canSelectGrouping: true, null!);
Model\ResourceViewModelTests.cs (1)
399return resource.ToViewModel(replicaIndex: 0, knownPropertyLookup ?? new MockKnownPropertyLookup(), NullLogger.Instance);
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)
154logger: NullLogger.Instance,
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
263Logger = 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)
208.BuildAsync(new(applicationOperation), NullLogger.Instance, CancellationToken.None).ConfigureAwait(false); 252.BuildAsync(new(applicationOperation), NullLogger.Instance, CancellationToken.None).ConfigureAwait(false); 1727NullLogger.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)
47internal ILogger Logger { get; init; } = NullLogger.Instance;
Publishing\ManifestPublishingContext.cs (2)
537.BuildAsync(ExecutionContext, NullLogger.Instance, CancellationToken) 575.BuildAsync(ExecutionContext, NullLogger.Instance, CancellationToken)
Aspire.Hosting.Azure.Kubernetes.Tests (8)
AzureKubernetesInfrastructureTests.cs (8)
1178NullLogger.Instance, 1200NullLogger.Instance, 1224NullLogger.Instance, 1244NullLogger.Instance, 1371NullLogger.Instance, 1467NullLogger.Instance, 1680NullLogger.Instance, 1750NullLogger.Instance,
Aspire.Hosting.Azure.Tests (108)
AzureAppServiceTests.cs (1)
1407NullLogger.Instance,
AzureContainerAppsTests.cs (1)
3193NullLogger.Instance,
AzureEnvironmentResourceExtensionsTests.cs (62)
361Logger = NullLogger.Instance, 415Logger = NullLogger.Instance, 753Logger = NullLogger.Instance, 834Logger = NullLogger.Instance, 918Logger = NullLogger.Instance, 1187Logger = NullLogger.Instance, 1251Logger = NullLogger.Instance, 1312Logger = NullLogger.Instance, 1373Logger = NullLogger.Instance, 1508Logger = NullLogger.Instance, 1566Logger = NullLogger.Instance, 1617Logger = NullLogger.Instance, 1629Logger = NullLogger.Instance, 1713Logger = NullLogger.Instance, 1797Logger = NullLogger.Instance, 1891Logger = NullLogger.Instance, 1962Logger = NullLogger.Instance, 2040Logger = NullLogger.Instance, 2054Logger = NullLogger.Instance, 2119Logger = NullLogger.Instance, 2183Logger = NullLogger.Instance, 2237Logger = NullLogger.Instance, 2297Logger = NullLogger.Instance, 2374Logger = NullLogger.Instance, 2388Logger = NullLogger.Instance, 2451Logger = NullLogger.Instance, 2468Logger = NullLogger.Instance, 2549Logger = NullLogger.Instance, 2595Logger = NullLogger.Instance, 2648Logger = NullLogger.Instance, 2662Logger = NullLogger.Instance, 2715Logger = NullLogger.Instance, 2788Logger = NullLogger.Instance, 2841Logger = NullLogger.Instance, 2901Logger = NullLogger.Instance, 2962Logger = NullLogger.Instance, 3032Logger = NullLogger.Instance, 3093Logger = NullLogger.Instance, 3162Logger = NullLogger.Instance, 3219Logger = NullLogger.Instance, 3282Logger = NullLogger.Instance, 3353Logger = NullLogger.Instance, 3408Logger = NullLogger.Instance, 3448Logger = NullLogger.Instance, 3522Logger = NullLogger.Instance, 3570Logger = NullLogger.Instance, 3626Logger = NullLogger.Instance, 3773Logger = NullLogger.Instance, 3852Logger = NullLogger.Instance, 3924Logger = NullLogger.Instance, 4004Logger = NullLogger.Instance, 4078Logger = NullLogger.Instance, 4130Logger = NullLogger.Instance, 4176Logger = NullLogger.Instance, 4222Logger = NullLogger.Instance, 4290Logger = NullLogger.Instance, 4529Logger = NullLogger.Instance, 4581Logger = NullLogger.Instance, 4628Logger = NullLogger.Instance, 4676Logger = NullLogger.Instance, 4814Logger = NullLogger.Instance, 5189NullLogger.Instance,
AzureSandboxesTests.cs (44)
66NullLogger.Instance, 113NullLogger.Instance, 522var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance); 569NullLogger.Instance); 646var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 676var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1050NullLogger.Instance, 1082NullLogger.Instance, 1120NullLogger.Instance, 1189NullLogger.Instance, 1236NullLogger.Instance, 1309var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance, TimeSpan.Zero); 1333NullLogger.Instance, 1383var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1405var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1425var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1450var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1473NullLogger.Instance, 1496NullLogger.Instance, 1522NullLogger.Instance, 1548NullLogger.Instance, 1571NullLogger.Instance, 1593NullLogger.Instance, 1617NullLogger.Instance, 1637var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1659var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1682var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1750var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1813var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1864var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1917var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1969var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 2367NullLogger.Instance, 2383NullLogger.Instance, 2614NullLogger.Instance, 2718NullLogger.Instance, 2877NullLogger.Instance, 2912NullLogger.Instance, 2949NullLogger.Instance, 3104NullLogger.Instance, 3159NullLogger.Instance, 3192NullLogger.Instance, 3256NullLogger.Instance, 3293NullLogger.Instance,
Aspire.Hosting.Blazor.Tests (4)
BlazorHostedExtensionsTests.cs (1)
254Logger = Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
EndpointsManifestTransformerTests.cs (2)
192manifests, outputPath, Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance, CancellationToken.None); 256manifests, outputPath, Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance, CancellationToken.None);
WithBlazorAppTests.cs (1)
325Logger = 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 (10)
DevTunnelAccessStatusTests.cs (7)
14Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance)); 24Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance)); 34Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance)); 47Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance)); 59Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance)); 72Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance)); 85Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance));
DevTunnelResourceBuilderExtensionsTests.cs (3)
570Logger = NullLogger.Instance 622Logger = NullLogger.Instance 670Logger = NullLogger.Instance
Aspire.Hosting.Dotnet.Tests (21)
DotnetProjectBuildArtifactManagerTests.cs (1)
203manager.PublishAndLeaseAsync(hash, [1, 2, 3], NullLogger.Instance, TestContext.Current.CancellationToken);
DotnetProjectBuildCoordinatorTests.cs (17)
195NullLogger.Instance, 240NullLogger.Instance, 295NullLogger.Instance, 301NullLogger.Instance, 365build.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 486var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 512var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 580buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 1710NullLogger.Instance, 1752buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 1898NullLogger.Instance, 1931NullLogger.Instance, 1964NullLogger.Instance, 2132() => buildResource.WriteBuildProjectAsync(NullLogger.Instance, canceledCts.Token)); 2134var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 2509Logger = NullLogger.Instance, 3088.BuildAsync(executionContext, NullLogger.Instance, cancellationToken);
DotnetProjectBuildEnvironmentTests.cs (2)
21NullLogger.Instance, 58NullLogger.Instance,
DotnetProjectRunPropertiesResolverTests.cs (1)
74NullLogger.Instance,
Aspire.Hosting.EntityFrameworkCore.Tests (5)
EFCoreOperationExecutorTests.cs (4)
147NullLogger.Instance, 170NullLogger.Instance, 196NullLogger.Instance, 205NullLogger.Instance,
EFMigrationPipelineTests.cs (1)
776NullLogger.Instance,
Aspire.Hosting.Foundry.Tests (5)
HostedAgentExtensionTests.cs (2)
427NullLogger.Instance, 575NullLogger.Instance,
PromptAgentTests.cs (2)
104Logger = NullLogger.Instance, 601NullLogger.Instance,
ToolboxTests.cs (1)
948return new PipelineContext(model, execContext, app.Services, NullLogger.Instance, CancellationToken.None);
Aspire.Hosting.Kubernetes.Tests (4)
CertManagerTests.cs (2)
146NullLogger.Instance, 189NullLogger.Instance,
KubernetesHelmChartTests.cs (1)
517Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
PipelineStepTestHelpers.cs (1)
60NullLogger.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)
127logger ??= Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance; 138logger ??= Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance;
Aspire.Hosting.Radius.Tests (10)
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 (3)
65var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default); 90RadiusDeploymentPipelineStep.DeleteDeployParametersFile(path, NullLogger.Instance); 117var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default);
Publishing\SealedSecretPublishTests.cs (3)
157copyMethod.Invoke(null, [options, outputDir, NullLogger.Instance]); 185copyMethod.Invoke(null, [BuildOptionsForStore("db-creds", manifestA), outputDir, NullLogger.Instance]); 189copyMethod.Invoke(null, [BuildOptionsForStore("cache-creds", manifestB), outputDir, NullLogger.Instance]);
Aspire.Hosting.RemoteHost.Tests (3)
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);
Aspire.Hosting.Tests (44)
Backchannel\AuxiliaryBackchannelTests.cs (3)
640Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); 673Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); 704Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance);
Dcp\ExecutableLaunchPlanTests.cs (1)
276NullLogger.Instance,
ExecutableResourceBuilderExtensionTests.cs (2)
230NullLogger.Instance); 414NullLogger.Instance);
ExecutionConfigurationGathererTests.cs (27)
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); 132await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 155await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 175await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 199await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 222await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 257await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 296await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 324await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 354await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 382await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 404await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 430await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 464await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 494await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 530await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 590await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 653await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 688await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 722await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 752await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 772await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 795await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 839await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
ProjectResourceBuilderExtensionTests.cs (4)
159.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 187.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 189.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 210.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
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 (2)
85ILogger logger = NullLogger.Instance; 101Assert.True(logger is not NullLogger);
Aspire.Hosting.TestUtilities (2)
Utils\ArgumentEvaluator.cs (1)
21.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None)
Utils\EnvironmentVariableEvaluator.cs (1)
23.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None);
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
275NullLogger.Instance.BeginScope(state);
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
275NullLogger.Instance.BeginScope(state);
Aspire.TestUtilities (1)
TestLoggerFactory.cs (1)
20return NullLogger.Instance;
Microsoft.AspNetCore.Components.AI (3)
Engine\UIAgent.cs (2)
95_logger = (ILogger?)loggerFactory?.CreateLogger<BlockMappingPipeline>() ?? NullLogger.Instance; 103_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 (3)
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 _));
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
222if (loggerInformation.Logger != NullLogger.Instance)
Microsoft.Extensions.Logging.Abstractions (8)
NullLogger.cs (3)
14/// Returns the shared instance of <see cref="NullLogger"/>. 16public static NullLogger Instance { get; } = new NullLogger(); 19/// Initializes a new instance of the <see cref="NullLogger"/> class.
NullLoggerFactory.cs (3)
8/// <see cref="NullLogger"/> that logs nothing. 24/// This returns a <see cref="NullLogger"/> instance that logs nothing. 28return NullLogger.Instance;
NullLoggerProvider.cs (2)
7/// Provider for the <see cref="NullLogger"/>. 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;