19 instantiations of Logger
Microsoft.AspNetCore.Mvc.Core.Test (1)
ContentResultTest.cs (1)
268new Logger<ContentResultExecutor>(NullLoggerFactory.Instance),
Microsoft.AspNetCore.Routing.Tests (14)
EndpointRoutingMiddlewareFormOptionsTest.cs (6)
28var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 60var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 95var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 133var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 168var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 211logger ??= new Logger<EndpointRoutingMiddleware>(NullLoggerFactory.Instance);
EndpointRoutingMiddlewareTest.cs (7)
79var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 236var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 274var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 306var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 332var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 362var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 471logger ??= new Logger<EndpointRoutingMiddleware>(NullLoggerFactory.Instance);
RoutingMetricsTests.cs (1)
158logger ??= new Logger<EndpointRoutingMiddleware>(NullLoggerFactory.Instance);
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionHandler.cs (1)
102new Logger<DefaultHubDispatcher<THub>>(loggerFactory),
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubDispatcherBenchmark.cs (1)
38new Logger<DefaultHubDispatcher<TestHub>>(NullLoggerFactory.Instance),
Microsoft.AspNetCore.SignalR.Tests (1)
DefaultHubLifetimeManagerTests.cs (1)
20return new DefaultHubLifetimeManager<Hub>(new Logger<DefaultHubLifetimeManager<Hub>>(NullLoggerFactory.Instance));
Microsoft.Extensions.Logging.Abstractions (1)
LoggerFactoryExtensions.cs (1)
24return new Logger<T>(factory);
18 references to Logger
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
107builder.Services.Add(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(Logger<>)));
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointMiddleware.cs (1)
29/// <param name="logger">The <see cref="Logger{T}"/> to write messages to.</param>
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
AuthorizeFilterIntegrationTest.cs (1)
183.AddTransient<ILogger<DefaultAuthorizationService>, Logger<DefaultAuthorizationService>>();
ModelBindingTestHelper.cs (1)
198.AddTransient<ILogger<DefaultAuthorizationService>, Logger<DefaultAuthorizationService>>();
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
294.AddTransient(typeof(ILogger<>), typeof(Logger<>));
Microsoft.AspNetCore.Routing.Tests (11)
EndpointRoutingMiddlewareFormOptionsTest.cs (5)
28var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 60var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 95var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 133var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 168var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory);
EndpointRoutingMiddlewareTest.cs (6)
79var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 236var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 274var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 306var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 332var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory); 362var logger = new Logger<EndpointRoutingMiddleware>(loggerFactory);
Microsoft.Extensions.Logging (1)
LoggingServiceCollectionExtensions.cs (1)
39services.TryAdd(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(Logger<>)));
Microsoft.Extensions.Logging.Abstractions (1)
LoggerT.cs (1)
22/// Creates a new <see cref="Logger{T}"/>.