715 references to Instance
aspire (13)
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)
104: this(NullLogger.Instance, subject, version, version) 1095public 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;
Mcp\Tools\McpToolHelpers.cs (1)
444var connection = await AppHostConnectionHelper.GetSelectedConnectionAsync(auxiliaryBackchannelMonitor, NullLogger.Instance, cancellationToken).ConfigureAwait(false);
Program.cs (1)
1484NullLogger.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.Cli.Tests (281)
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)
996=> new(monitor, identity ?? new TestProcessIdentityProvider(), time, NullLogger.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 (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 (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); 1008var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 1014features: new TestFeatures(), NullLogger.Instance); 1074var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1412var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1757var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2191var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2315features: 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); 1823var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 2020var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2095var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2149var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2260var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 3582var 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\UpdateCommandRepositoryToolsTests.cs (4)
152new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 268new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 483new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 567}, new TestFeatures(), NullLogger.Instance, cliDownloadBaseUrl: "https://example.invalid/cli")
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)
109NullLogger.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\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 (6)
476}, nugetCache, new TestFeatures(), NullLogger.Instance); 482}, nugetCache, new TestFeatures(), NullLogger.Instance); 484var implicitChannel = PackageChannel.CreateImplicitChannel(nugetCache, new TestFeatures(), NullLogger.Instance); 569}, nugetCache, new TestFeatures(), NullLogger.Instance); 613}, nugetCache, new TestFeatures(), NullLogger.Instance); 659}, nugetCache, new TestFeatures(), NullLogger.Instance);
Projects\GuestAppHostProjectTests.cs (8)
1067var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1459features: new TestFeatures(), NullLogger.Instance); 1515features: new TestFeatures(), NullLogger.Instance); 1572features: new TestFeatures(), NullLogger.Instance); 1941? PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance) 1942: PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 1986var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2075var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (25)
89Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance)); 98Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance)); 107Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "new-fingerprint", NullLogger.Instance)); 116Assert.True(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance)); 907NullLogger.Instance, 1053features: new TestFeatures(), NullLogger.Instance); 1080NullLogger.Instance, 1129features: new TestFeatures(), NullLogger.Instance); 1175features: new TestFeatures(), NullLogger.Instance); 1229features: new TestFeatures(), NullLogger.Instance); 1251features: new TestFeatures(), NullLogger.Instance); 1275features: new TestFeatures(), NullLogger.Instance); 1369"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1398"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1449NullLogger.Instance); 1464channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1705features: new TestFeatures(), NullLogger.Instance); 1754features: new TestFeatures(), NullLogger.Instance); 1808features: new TestFeatures(), NullLogger.Instance); 1853features: new TestFeatures(), NullLogger.Instance); 1949features: new TestFeatures(), NullLogger.Instance); 2011features: new TestFeatures(), NullLogger.Instance); 2177features: new TestFeatures(), NullLogger.Instance); 2245features: new TestFeatures(), NullLogger.Instance); 2392NullLogger.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)
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);
tests\Shared\Processes\ProcessSupervisorTests.cs (3)
80await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test completion"); 101await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test cancellation"); 120await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test guardian crash");
tests\Shared\Processes\ProcessTestFixture.cs (2)
123TestProcessSignaler.RequestGracefulShutdown(processId, expectedStartTime: null, NullLogger.Instance); 126CreateProcess(startInfo, NullLogger.Instance, options);
TestServices\TestPackagingService.cs (1)
32var testChannel = 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);
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 (10)
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)
32var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance }; 121var 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)
539var 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)
284Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (39)
ChartDataCalculatorTests.cs (1)
22new() { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Integration\StartupTests.cs (3)
407}, NullLogger.Instance); 464}, NullLogger.Instance); 514}, 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\ResourceViewModelTests.cs (1)
433return 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)
154logger: 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)
551.BuildAsync(ExecutionContext, NullLogger.Instance, CancellationToken) 589.BuildAsync(ExecutionContext, NullLogger.Instance, CancellationToken)
Aspire.Hosting.Azure.Kubernetes.Tests (8)
AzureKubernetesInfrastructureTests.cs (8)
1175NullLogger.Instance, 1197NullLogger.Instance, 1221NullLogger.Instance, 1241NullLogger.Instance, 1368NullLogger.Instance, 1464NullLogger.Instance, 1677NullLogger.Instance, 1747NullLogger.Instance,
Aspire.Hosting.Azure.Tests (114)
AzureAppServiceTests.cs (1)
1452NullLogger.Instance,
AzureContainerAppExpressEndpointTests.cs (1)
370app.Services, NullLogger.Instance, TestContext.Current.CancellationToken);
AzureContainerAppsTests.cs (1)
3250NullLogger.Instance,
AzureEnvironmentResourceExtensionsTests.cs (62)
358Logger = NullLogger.Instance, 412Logger = NullLogger.Instance, 772Logger = NullLogger.Instance, 853Logger = NullLogger.Instance, 937Logger = NullLogger.Instance, 1206Logger = NullLogger.Instance, 1270Logger = NullLogger.Instance, 1331Logger = NullLogger.Instance, 1392Logger = NullLogger.Instance, 1527Logger = NullLogger.Instance, 1585Logger = NullLogger.Instance, 1636Logger = NullLogger.Instance, 1648Logger = NullLogger.Instance, 1732Logger = NullLogger.Instance, 1816Logger = NullLogger.Instance, 1910Logger = NullLogger.Instance, 1981Logger = NullLogger.Instance, 2059Logger = NullLogger.Instance, 2073Logger = NullLogger.Instance, 2138Logger = NullLogger.Instance, 2202Logger = NullLogger.Instance, 2256Logger = NullLogger.Instance, 2316Logger = NullLogger.Instance, 2393Logger = NullLogger.Instance, 2407Logger = NullLogger.Instance, 2470Logger = NullLogger.Instance, 2487Logger = NullLogger.Instance, 2568Logger = NullLogger.Instance, 2614Logger = NullLogger.Instance, 2667Logger = NullLogger.Instance, 2681Logger = NullLogger.Instance, 2734Logger = NullLogger.Instance, 2807Logger = NullLogger.Instance, 2860Logger = NullLogger.Instance, 2920Logger = NullLogger.Instance, 2981Logger = NullLogger.Instance, 3051Logger = NullLogger.Instance, 3112Logger = NullLogger.Instance, 3181Logger = NullLogger.Instance, 3238Logger = NullLogger.Instance, 3301Logger = NullLogger.Instance, 3372Logger = NullLogger.Instance, 3427Logger = NullLogger.Instance, 3467Logger = NullLogger.Instance, 3541Logger = NullLogger.Instance, 3589Logger = NullLogger.Instance, 3645Logger = NullLogger.Instance, 3792Logger = NullLogger.Instance, 3871Logger = NullLogger.Instance, 3943Logger = NullLogger.Instance, 4023Logger = NullLogger.Instance, 4097Logger = NullLogger.Instance, 4149Logger = NullLogger.Instance, 4195Logger = NullLogger.Instance, 4241Logger = NullLogger.Instance, 4309Logger = NullLogger.Instance, 4548Logger = NullLogger.Instance, 4600Logger = NullLogger.Instance, 4647Logger = NullLogger.Instance, 4695Logger = NullLogger.Instance, 4833Logger = NullLogger.Instance, 5220NullLogger.Instance,
AzureSandboxesTests.cs (44)
64NullLogger.Instance, 111NullLogger.Instance, 521var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance); 568NullLogger.Instance); 645var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 675var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1049NullLogger.Instance, 1081NullLogger.Instance, 1119NullLogger.Instance, 1188NullLogger.Instance, 1235NullLogger.Instance, 1308var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance, TimeSpan.Zero); 1332NullLogger.Instance, 1382var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1404var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1424var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1449var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero); 1472NullLogger.Instance, 1495NullLogger.Instance, 1521NullLogger.Instance, 1547NullLogger.Instance, 1570NullLogger.Instance, 1592NullLogger.Instance, 1616NullLogger.Instance, 1636var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1658var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1681var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1749var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1812var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1863var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1916var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 1968var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance); 2366NullLogger.Instance, 2382NullLogger.Instance, 2668NullLogger.Instance, 2791NullLogger.Instance, 2950NullLogger.Instance, 2985NullLogger.Instance, 3022NullLogger.Instance, 3177NullLogger.Instance, 3232NullLogger.Instance, 3265NullLogger.Instance, 3329NullLogger.Instance, 3366NullLogger.Instance,
BicepUtilitiesTests.cs (5)
465var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 481var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 503var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 528var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 566var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
646: Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance;
Aspire.Hosting.Blazor.Tests (8)
AddBlazorGatewayTests.cs (4)
395NullLogger.Instance, 415projectPath, NullLogger.Instance, TestContext.Current.CancellationToken); 523.BuildAsync(executionContext, NullLogger.Instance, CancellationToken.None); 533NullLogger.Instance,
BlazorHostedExtensionsTests.cs (1)
327Logger = 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)
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 (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)
577Logger = NullLogger.Instance 629Logger = NullLogger.Instance 677Logger = NullLogger.Instance
Aspire.Hosting.Dotnet.Tests (26)
DotnetProjectBuildArtifactManagerTests.cs (1)
203manager.PublishAndLeaseAsync(hash, [1, 2, 3], NullLogger.Instance, TestContext.Current.CancellationToken);
DotnetProjectBuildCoordinatorTests.cs (22)
372NullLogger.Instance, 424NullLogger.Instance, 515NullLogger.Instance, 518NullLogger.Instance, 607build.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 733var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 772NullLogger.Instance, 825NullLogger.Instance, 871var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 889var unifiedPath = await unified.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 890var individualPath = await individual.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 1111buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 2241NullLogger.Instance, 2290buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken))); 2436NullLogger.Instance, 2469NullLogger.Instance, 2502NullLogger.Instance, 2676() => buildResource.WriteBuildProjectAsync(NullLogger.Instance, canceledCts.Token)); 2678var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 3159Logger = NullLogger.Instance, 3706var path = await resource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken); 4069.BuildAsync(executionContext, NullLogger.Instance, cancellationToken);
DotnetProjectBuildEnvironmentTests.cs (2)
25NullLogger.Instance, 62NullLogger.Instance,
DotnetProjectRunPropertiesResolverTests.cs (1)
74NullLogger.Instance,
Aspire.Hosting.EntityFrameworkCore.Tests (7)
EFBuildReadinessTests.cs (2)
179migrations.Resource, NullLogger.Instance, TestContext.Current.CancellationToken, app.Services, tool.Resource); 203migrations.Resource, NullLogger.Instance, TestContext.Current.CancellationToken, app.Services, tool.Resource);
EFCoreOperationExecutorTests.cs (4)
145NullLogger.Instance, 166NullLogger.Instance, 192NullLogger.Instance, 201NullLogger.Instance,
EFMigrationPipelineTests.cs (1)
864NullLogger.Instance,
Aspire.Hosting.Foundry.Tests (10)
HostedAgentExtensionTests.cs (7)
427NullLogger.Instance, 594NullLogger.Instance, 621NullLogger.Instance, 644NullLogger.Instance, 687NullLogger.Instance, 719NullLogger.Instance, 742NullLogger.Instance,
PromptAgentTests.cs (2)
102Logger = NullLogger.Instance, 599NullLogger.Instance,
ToolboxTests.cs (1)
945return 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)
515Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance,
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.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 (16)
Deployment\ControlPlaneVersionGateTests.cs (5)
223NullLogger.Instance, 244NullLogger.Instance, 264NullLogger.Instance, 295NullLogger.Instance, kubeContext: null, ThrowingRunner, CancellationToken.None); 315NullLogger.Instance,
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 (4)
67var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default); 92RadiusDeploymentPipelineStep.DeleteDeployParametersFile(path, NullLogger.Instance); 119var path = await step.WriteDeployParametersFileAsync(NullLogger.Instance, default); 139() => 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)
80await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test completion"); 101await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test cancellation"); 120await using var scope = new ProcessScope(guardian, NullLogger.Instance, "test guardian crash");
tests\Shared\Processes\ProcessTestFixture.cs (2)
123TestProcessSignaler.RequestGracefulShutdown(processId, expectedStartTime: null, NullLogger.Instance); 126CreateProcess(startInfo, NullLogger.Instance, options);
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Logger = NullLogger.Instance 112Logger = NullLogger.Instance
Aspire.Hosting.Tests (77)
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)
1574await using var catalog = new ResourceTerminalCatalog(new DistributedApplicationModel([resource]), NullLogger.Instance);
Dcp\ExecutableLaunchPlanTests.cs (1)
276NullLogger.Instance,
Dcp\KubernetesServiceTests.cs (4)
536var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 586var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 756var pipeline = DcpPipelineBuilder.BuildWatchResourcePipeline(NullLogger.Instance); 805var 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 (31)
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); 314await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 353await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 381await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 411await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 439await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 461await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 487await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 521await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 551await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 587await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 647await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 709await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 744await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 778await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 808await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 828await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 851await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 895await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
ProjectResourceBuilderExtensionTests.cs (12)
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); 252.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 340.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 344.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 388.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 423.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 460.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 497.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 499.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
Publishing\DotnetProgramArchiveTests.cs (1)
491NullLogger.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)
106ILogger 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)
1166control, new TerminalHostControlRpcTarget(app), NullLogger.Instance); 1311control, new TerminalHostControlRpcTarget(app), NullLogger.Instance);
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 (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;