1 instantiation of NullLogger
Microsoft.Extensions.Logging.Abstractions (1)
295 references to NullLogger
aspire (2)
Aspire.Cli.Tests (22)
Projects\GuestRuntimeTests.cs (20)
41var runtime = new GuestRuntime(CreateTestSpec(), NullLogger.Instance);
49var runtime = new GuestRuntime(CreateTestSpec(), NullLogger.Instance);
57var runtime = new GuestRuntime(CreateTestSpec(), NullLogger.Instance);
72var runtime = new GuestRuntime(spec, NullLogger.Instance);
91var runtime = new GuestRuntime(spec, NullLogger.Instance);
106var runtime = new GuestRuntime(spec, NullLogger.Instance);
123var runtime = new GuestRuntime(spec, NullLogger.Instance);
138var runtime = new GuestRuntime(spec, NullLogger.Instance);
157var runtime = new GuestRuntime(spec, NullLogger.Instance);
178var runtime = new GuestRuntime(spec, NullLogger.Instance);
197var runtime = new GuestRuntime(spec, NullLogger.Instance);
216var runtime = new GuestRuntime(spec, NullLogger.Instance);
234var runtime = new GuestRuntime(spec, NullLogger.Instance);
254var runtime = new GuestRuntime(spec, NullLogger.Instance);
276var runtime = new GuestRuntime(spec, NullLogger.Instance);
284var runtime = new GuestRuntime(CreateTestSpec(), NullLogger.Instance);
293var runtime = new GuestRuntime(spec, NullLogger.Instance);
314NullLogger.Instance,
341NullLogger.Instance,
375NullLogger.Instance,
Aspire.Dashboard (1)
Aspire.Dashboard.Components.Tests (6)
Aspire.Dashboard.Tests (29)
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!);
Aspire.Hosting (7)
Aspire.Hosting.DevTunnels.Tests (7)
Aspire.Hosting.RemoteHost.Tests (2)
Aspire.Hosting.Tests (34)
ExecutionConfigurationGathererTests.cs (25)
37await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
60await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
80await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
104await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
130await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
153await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
173await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
197await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
227await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
255await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
285await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
313await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
335await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
361await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
395await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
425await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
461await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
521await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
584await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
619await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
652await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
682await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
702await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
725await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
766await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
VersionChecking\PackageUpdateHelpersTests.cs (5)
55var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
103var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
151var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(10, prerelease: ["dev"]), packages);
165var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
213var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v6.Tests (1)
Aspire.TestUtilities (1)
Microsoft.AspNetCore.Components.Server.Tests (3)
Microsoft.AspNetCore.Components.Tests (28)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Hosting.Tests (5)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Results.Tests (6)
HttpResultsHelperTests.cs (6)
37await HttpResultsHelper.WriteResultAsJsonAsync(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
68await HttpResultsHelper.WriteResultAsJsonAsync(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
101await HttpResultsHelper.WriteResultAsJsonAsync(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
135await HttpResultsHelper.WriteResultAsJsonAsync<Todo>(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
169await HttpResultsHelper.WriteResultAsJsonAsync<JsonTodo>(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
197await HttpResultsHelper.WriteResultAsJsonAsync(httpContext, NullLogger.Instance, value, jsonSerializerOptions: serializerOptions);
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (3)
130await OutputCacheEntryFormatter.StoreAsync(Key, entry, _tags, _options.DefaultExpirationTimeSpan, _store, NullLogger.Instance, CancellationToken.None);
146await OutputCacheEntryFormatter.StoreAsync(Key, entry, _tags, _options.DefaultExpirationTimeSpan, _store, NullLogger.Instance, CancellationToken.None);
163await OutputCacheEntryFormatter.StoreAsync(Key, entry, _tags, _options.DefaultExpirationTimeSpan, _store, NullLogger.Instance, CancellationToken.None);
Microsoft.AspNetCore.OutputCaching.Tests (11)
OutputCacheEntryFormatterTests.cs (3)
35await OutputCacheEntryFormatter.StoreAsync(key, entry, null, TimeSpan.Zero, store, NullLogger.Instance, default);
54await OutputCacheEntryFormatter.StoreAsync(key, entry, new HashSet<string>() { "tag", "タグ" }, TimeSpan.Zero, store, NullLogger.Instance, default);
72await OutputCacheEntryFormatter.StoreAsync(key, entry, null, TimeSpan.Zero, store, NullLogger.Instance, default);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Routing.Tests (6)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (14)
Internal\MessageBufferTests.cs (14)
26using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 1, NullLogger.Instance);
55using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance);
94using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance);
135using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 1000, NullLogger.Instance);
186using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 1000, NullLogger.Instance);
242using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 1000, NullLogger.Instance);
286using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 1000, NullLogger.Instance);
311using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance);
355using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 1, NullLogger.Instance);
393using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance);
436using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance, timeProvider);
474using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance);
518using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance, timeProvider);
574using var messageBuffer = new MessageBuffer(connection, protocol, bufferLimit: 100_000, NullLogger.Instance);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.StaticFiles.Tests (8)
RangeHelperTests.cs (3)
68var (isRangeRequest, parsedRangeResult) = RangeHelper.ParseRange(httpContext, httpContext.Request.GetTypedHeaders(), 10, NullLogger.Instance);
85var (isRangeRequest, parsedRangeResult) = RangeHelper.ParseRange(httpContext, httpContext.Request.GetTypedHeaders(), 10, NullLogger.Instance);
101var (isRangeRequest, parsedRange) = RangeHelper.ParseRange(httpContext, httpContext.Request.GetTypedHeaders(), 4, NullLogger.Instance);
StaticFileContextTest.cs (5)
24var context = new StaticFileContext(httpContext, options, NullLogger.Instance, new TestFileProvider(), contentType, subPath);
51var context = new StaticFileContext(httpContext, options, NullLogger.Instance, fileProvider, contentType, subPath);
79var context = new StaticFileContext(httpContext, options, NullLogger.Instance, fileProvider, contentType, subPath);
108var context = new StaticFileContext(httpContext, options, NullLogger.Instance, fileProvider, contentType, subPath);
136var context = new StaticFileContext(httpContext, options, NullLogger.Instance, fileProvider, contentType, subPath);
Microsoft.CodeAnalysis.ExternalAccess.HotReload.UnitTests (1)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Tests (4)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (8)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Maui (3)
Microsoft.Maui.Maps (2)
Templates.Blazor.Tests (5)
Templates.Blazor.WebAssembly.Auth.Tests (5)
Templates.Blazor.WebAssembly.Tests (5)
Templates.Mvc.Tests (5)
Templates.Tests (5)