17 implementations of ILogger
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
6public class TestLogger<T> : ILogger<T>
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
6public class TestLogger<T> : ILogger<T>
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
6public class TestLogger<T> : ILogger<T>
Aspire.Hosting.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
6public class TestLogger<T> : ILogger<T>
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
6public class TestLogger<T> : ILogger<T>
Microsoft.AspNetCore.Authorization.Test (1)
DefaultAuthorizationServiceTests.cs (1)
1158public class DefaultAuthorizationServiceTestLogger : ILogger<DefaultAuthorizationService>
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\WebAssemblyConsoleLogger.cs (1)
13internal sealed class WebAssemblyConsoleLogger<T> : ILogger<T>, ILogger
Microsoft.AspNetCore.Identity.Specification.Tests (1)
TestLogger.cs (1)
23public class TestLogger<TName> : ILogger<TName>, ITestLogger
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLoggerT.cs (1)
8public class TestLogger<T> : ILogger<T>
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
TagHelperLogger.cs (1)
8public class TagHelperLogger<T> : ILogger<T>
Microsoft.AspNetCore.TestHost.Tests (3)
ClientHandlerTests.cs (1)
712private class VerifierLogger : ILogger<IWebHost>
HttpContextBuilderTests.cs (1)
348private class VerifierLogger : ILogger<IWebHost>
TestClientTests.cs (1)
737private class VerifierLogger : ILogger<IWebHost>
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerT.cs (1)
21public sealed class FakeLogger<T> : FakeLogger, ILogger<T>
Microsoft.Extensions.Logging.Abstractions (2)
LoggerT.cs (1)
16public class Logger<T> : ILogger<T>
NullLoggerT.cs (1)
11public class NullLogger<T> : ILogger<T>
Microsoft.Maui (1)
Hosting\MauiAppBuilder.cs (1)
192 private sealed class NullLogger<T> : ILogger<T>, IDisposable
763 references to ILogger
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
13internal sealed partial class MetricsService(MetricsChannel channel, ConfluentKafkaMetrics metrics, ILogger<MetricsService> logger) : BackgroundService
Aspire.Dashboard (20)
Configuration\PostConfigureDashboardOptions.cs (1)
19public PostConfigureDashboardOptions(IConfiguration configuration, ILogger<PostConfigureDashboardOptions> logger)
Configuration\ValidateDashboardOptions.cs (1)
18public ValidateDashboardOptions(ILogger<ValidateDashboardOptions> logger)
DashboardWebApplication.cs (6)
48private readonly ILogger<DashboardWebApplication> _logger; 421private ILogger<DashboardWebApplication> GetLogger() 426private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 435private static void WriteVersion(ILogger<DashboardWebApplication> logger) 536var logger = serverOptions.ApplicationServices.GetRequiredService<ILogger<DashboardWebApplication>>();
Model\BrowserStorage\LocalBrowserStorage.cs (2)
19private readonly ILogger<LocalBrowserStorage> _logger; 21public LocalBrowserStorage(IJSRuntime jsRuntime, ProtectedLocalStorage protectedLocalStorage, ILogger<LocalBrowserStorage> logger) : base(protectedLocalStorage)
Model\ValidateTokenMiddleware.cs (2)
18private readonly ILogger<ValidateTokenMiddleware> _logger; 20public ValidateTokenMiddleware(RequestDelegate next, IOptionsMonitor<DashboardOptions> options, ILogger<ValidateTokenMiddleware> logger)
Otlp\OtlpLogsService.cs (2)
12private readonly ILogger<OtlpLogsService> _logger; 15public OtlpLogsService(ILogger<OtlpLogsService> logger, TelemetryRepository telemetryRepository)
Otlp\OtlpMetricsService.cs (2)
12private readonly ILogger<OtlpMetricsService> _logger; 15public OtlpMetricsService(ILogger<OtlpMetricsService> logger, TelemetryRepository telemetryRepository)
Otlp\OtlpTraceService.cs (2)
12private readonly ILogger<OtlpTraceService> _logger; 15public OtlpTraceService(ILogger<OtlpTraceService> logger, TelemetryRepository telemetryRepository)
ResourceService\DashboardClient.cs (1)
54private readonly ILogger<DashboardClient> _logger;
ShortcutManager.cs (1)
13private readonly ILogger<ShortcutManager> _logger = loggerFactory.CreateLogger<ShortcutManager>();
Aspire.Dashboard.Components.Tests (7)
Pages\ConsoleLogsTests.cs (4)
62var logger = Services.GetRequiredService<ILogger<ConsoleLogsTests>>(); 122var logger = Services.GetRequiredService<ILogger<ConsoleLogsTests>>();
Pages\StructuredLogsTests.cs (1)
180Services.AddSingleton<ILogger<StructuredLogs>>(NullLogger<StructuredLogs>.Instance);
Pages\TraceDetailsTests.cs (1)
172Services.AddSingleton<ILogger<StructuredLogs>>(NullLogger<StructuredLogs>.Instance);
tests\Shared\Logging\TestLoggerT.cs (1)
8private readonly ILogger<T> _logger;
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (1)
189var logger = loggerFactory.CreateLogger<StartupTests>();
tests\Shared\Logging\TestLoggerT.cs (1)
8private readonly ILogger<T> _logger;
Aspire.Hosting (22)
ApplicationModel\ResourceNotificationService.cs (4)
21private readonly ILogger<ResourceNotificationService> _logger; 32/// Obsolete. Use the constructor that accepts an <see cref="ILogger{ResourceNotificationService}"/>, <see cref="IHostApplicationLifetime"/> and <see cref="IServiceProvider"/>.<br/> 42public ResourceNotificationService(ILogger<ResourceNotificationService> logger, IHostApplicationLifetime hostApplicationLifetime) 57public ResourceNotificationService(ILogger<ResourceNotificationService> logger, IHostApplicationLifetime hostApplicationLifetime, IServiceProvider serviceProvider, ResourceLoggerService resourceLoggerService)
Dashboard\DashboardLifecycleHook.cs (1)
27ILogger<DistributedApplication> distributedApplicationLogger,
Dashboard\DashboardService.cs (1)
21internal sealed partial class DashboardService(DashboardServiceData serviceData, IHostEnvironment hostEnvironment, IHostApplicationLifetime hostApplicationLifetime, ILogger<DashboardService> logger)
Dashboard\DashboardServiceData.cs (1)
24ILogger<DashboardServiceData> logger,
Dashboard\DashboardServiceHost.cs (2)
46private readonly ILogger<DashboardServiceHost> _logger; 107builder.Services.Add(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(Logger<>)));
Dcp\ApplicationExecutor.cs (3)
69internal sealed class ApplicationExecutor(ILogger<ApplicationExecutor> logger, 70ILogger<DistributedApplication> distributedApplicationLogger, 96private readonly ILogger<ApplicationExecutor> _logger = logger;
Dcp\KubernetesService.cs (1)
55internal sealed class KubernetesService(ILogger<KubernetesService> logger, IOptions<DcpOptions> dcpOptions, Locations locations) : IKubernetesService, IDisposable
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
12internal sealed class CodespacesResourceUrlRewriterService(ILogger<CodespacesResourceUrlRewriterService> logger, IOptions<CodespacesOptions> options, CodespacesUrlRewriter codespaceUrlRewriter, ResourceNotificationService resourceNotificationService) : BackgroundService
Devcontainers\DevcontainerSettingsWriter.cs (1)
12internal class DevcontainerSettingsWriter(ILogger<DevcontainerSettingsWriter> logger, IOptions<CodespacesOptions> codespaceOptions, IOptions<DevcontainersOptions> devcontainerOptions)
DistributedApplicationBuilder.cs (3)
324var logger = sp.GetRequiredService<ILogger<DistributedApplicationBuilder>>(); 340sp.GetRequiredService<ILogger<DistributedApplicationBuilder>>().LogCritical(
DistributedApplicationLifecycle.cs (1)
12ILogger<DistributedApplication> logger,
Health\ResourceHealthCheckService.cs (1)
14internal class ResourceHealthCheckService(ILogger<ResourceHealthCheckService> logger, ResourceNotificationService resourceNotificationService, HealthCheckService healthCheckService, IServiceProvider services, IDistributedApplicationEventing eventing, TimeProvider timeProvider) : BackgroundService
Publishing\ManifestPublisher.cs (2)
12internal class ManifestPublisher(ILogger<ManifestPublisher> logger, 17private readonly ILogger<ManifestPublisher> _logger = logger;
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (2)
35ILogger<AzureProvisioner> logger, 202ILogger<AzureProvisioner> logger,
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
23ILogger<AzureContainerAppsInfrastructure> logger,
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (2)
22private readonly ILogger<DaprDistributedApplicationLifecycleHook> _logger; 27public DaprDistributedApplicationLifecycleHook(IConfiguration configuration, IHostEnvironment environment, ILogger<DaprDistributedApplicationLifecycleHook> logger, IOptions<DaprOptions> options)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
8private readonly ILogger<T> _logger;
Aspire.Hosting.Tests (6)
Dashboard\DashboardServiceTests.cs (1)
82var logger = loggerFactory.CreateLogger<DashboardServiceTests>();
DistributedApplicationTests.cs (2)
192var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>();
Helpers\JsonDocumentManifestPublisher.cs (1)
14ILogger<ManifestPublisher> logger,
tests\Shared\Logging\TestLoggerT.cs (1)
8private readonly ILogger<T> _logger;
Utils\ResourceNotificationServiceTestHelpers.cs (1)
12internal static ResourceNotificationService Create(ILogger<ResourceNotificationService>? logger = null, IHostApplicationLifetime? hostApplicationLifetime = null, ResourceLoggerService? resourceLoggerService = null)
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
8private readonly ILogger<T> _logger;
AutobahnTestApp (1)
Startup.cs (1)
15var logger = loggerFactory.CreateLogger<Startup>();
AzureFunctionsEndToEnd.Functions (4)
MyAzureBlobTrigger.cs (1)
6public class MyAzureBlobTrigger(ILogger<MyAzureBlobTrigger> logger)
MyAzureQueueTrigger.cs (1)
7public class MyAzureQueueTrigger(ILogger<MyAzureQueueTrigger> logger)
MyEventHubTrigger.cs (1)
6public class MyEventHubTrigger(ILogger<MyEventHubTrigger> logger)
MyHttpTrigger.cs (1)
19ILogger<MyHttpTrigger> logger,
BasicWebSite (3)
Controllers\AsyncDisposableController.cs (1)
12public AsyncDisposableController(ILogger<AsyncDisposableController> logger, ControllerTestDisposeAsync testDisposeAsync)
Filters\ServiceActionFilter.cs (2)
10private readonly ILogger<ServiceActionFilter> _logger; 12public ServiceActionFilter(ILogger<ServiceActionFilter> logger)
BasketService (4)
BasketService.cs (2)
9public class BasketService(IBasketRepository repository, IConfiguration configuration, IServiceProvider serviceProvider, ILogger<BasketService> logger) : Basket.BasketBase 13private readonly ILogger<BasketService> _logger = logger;
Repositories\RedisBasketRepository.cs (2)
7public class RedisBasketRepository(ILogger<RedisBasketRepository> logger, IConnectionMultiplexer redis) : IBasketRepository 9private readonly ILogger<RedisBasketRepository> _logger = logger;
BrowserTelemetry.Web (2)
Pages\Index.cshtml.cs (2)
7private readonly ILogger<IndexModel> _logger; 9public IndexModel(ILogger<IndexModel> logger)
BuildValidator (3)
LocalReferenceResolver.cs (1)
56var logger = loggerFactory.CreateLogger<LocalReferenceResolver>();
Program.cs (2)
125var logger = loggerFactory.CreateLogger<Program>(); 236var logger = loggerFactory.CreateLogger<Program>();
CatalogDb (1)
CatalogDbInitializer.cs (1)
6internal sealed class CatalogDbInitializer(IServiceProvider serviceProvider, ILogger<CatalogDbInitializer> logger)
ClientSample (1)
LoggingMessageHandler.cs (1)
13private readonly ILogger<LoggingMessageHandler> _logger;
Consumer (1)
ConsumerWorker.cs (1)
8internal sealed class ConsumerWorker(IConsumer<Ignore, string> consumer, ILogger<ConsumerWorker> logger) : BackgroundService
CustomPolicyProvider (2)
Authorization\MinimumAgeAuthorizationHandler.cs (2)
17private readonly ILogger<MinimumAgeAuthorizationHandler> _logger; 19public MinimumAgeAuthorizationHandler(ILogger<MinimumAgeAuthorizationHandler> logger)
DaprServiceA (1)
Program.cs (1)
37app.MapPost("/subscriptions/weather", [Topic("pubsub", "weather")] (ILogger<Program> logger, WeatherForecastMessage message) =>
DaprServiceC (1)
Program.cs (1)
24public sealed class Worker(ILogger<Worker> logger, DaprClient dapr) : BackgroundService
EventHubsConsumer (2)
Consumer.cs (1)
20internal sealed class Consumer(EventHubConsumerClient client, ILogger<Consumer> logger) : BackgroundService
Processor.cs (1)
24internal sealed class Processor(EventProcessorClient client, ILogger<Processor> logger) : BackgroundService
HostedBlazorWebassemblyApp.Server (4)
Controllers\WeatherForecastController.cs (2)
17private readonly ILogger<WeatherForecastController> _logger; 19public WeatherForecastController(ILogger<WeatherForecastController> logger, IWeatherForecastService forecastService)
Pages\Error.cshtml.cs (2)
23private readonly ILogger<ErrorModel> _logger; 25public ErrorModel(ILogger<ErrorModel> logger)
http2cat (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
Identity.ExternalClaims (23)
Controllers\AccountController.cs (1)
21public AccountController(SignInManager<ApplicationUser> signInManager, ILogger<AccountController> logger)
Pages\Account\ExternalLogin.cshtml.cs (2)
21private readonly ILogger<ExternalLoginModel> _logger; 26ILogger<ExternalLoginModel> logger)
Pages\Account\Login.cshtml.cs (2)
21private readonly ILogger<LoginModel> _logger; 23public LoginModel(SignInManager<ApplicationUser> signInManager, ILogger<LoginModel> logger)
Pages\Account\LoginWith2fa.cshtml.cs (2)
20private readonly ILogger<LoginWith2faModel> _logger; 22public LoginWith2faModel(SignInManager<ApplicationUser> signInManager, ILogger<LoginWith2faModel> logger)
Pages\Account\LoginWithRecoveryCode.cshtml.cs (2)
20private readonly ILogger<LoginWithRecoveryCodeModel> _logger; 22public LoginWithRecoveryCodeModel(SignInManager<ApplicationUser> signInManager, ILogger<LoginWithRecoveryCodeModel> logger)
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
21private readonly ILogger<ChangePasswordModel> _logger; 26ILogger<ChangePasswordModel> logger)
Pages\Account\Manage\Disable2fa.cshtml.cs (2)
19private readonly ILogger<Disable2faModel> _logger; 23ILogger<Disable2faModel> logger)
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
24private readonly ILogger<EnableAuthenticatorModel> _logger; 31ILogger<EnableAuthenticatorModel> logger,
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
19private readonly ILogger<GenerateRecoveryCodesModel> _logger; 23ILogger<GenerateRecoveryCodesModel> logger)
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (2)
19ILogger<ResetAuthenticatorModel> _logger; 23ILogger<ResetAuthenticatorModel> logger)
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
20private readonly ILogger<TwoFactorAuthenticationModel> _logger; 25ILogger<TwoFactorAuthenticationModel> logger)
Pages\Account\Register.cshtml.cs (2)
22private readonly ILogger<RegisterModel> _logger; 28ILogger<RegisterModel> logger,
IdentitySample.DefaultUI (2)
Areas\Identity\Pages\Account\Register.cshtml.cs (2)
19private readonly ILogger<RegisterModel> _logger; 25ILogger<RegisterModel> logger,
IIS.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
IIS.LongTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
IIS.NewHandler.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
IIS.NewShim.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
IISExpress.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
InMemory.FunctionalTests (2)
Http2\Http2EndToEndTests.cs (2)
35var logger = context.RequestServices.GetRequiredService<ILogger<Http2EndToEndTests>>();
IntegrationTestsWebsite (2)
Services\GreeterService.cs (2)
10private readonly ILogger<GreeterService> _logger; 11public GreeterService(ILogger<GreeterService> logger)
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (2)
137var logger = context.RequestServices.GetRequiredService<ILogger<Http3RequestTests>>();
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgery.cs (1)
23private readonly ILogger<DefaultAntiforgery> _logger;
Microsoft.AspNetCore.Authentication.Negotiate (2)
PostConfigureNegotiateOptions.cs (2)
20private readonly ILogger<NegotiateHandler> _logger; 27public PostConfigureNegotiateOptions(IEnumerable<IServerIntegratedAuth> serverAuthServices, ILogger<NegotiateHandler> logger)
Microsoft.AspNetCore.Authorization (1)
DefaultAuthorizationService.cs (1)
35public DefaultAuthorizationService(IAuthorizationPolicyProvider policyProvider, IAuthorizationHandlerProvider handlers, ILogger<DefaultAuthorizationService> logger, IAuthorizationHandlerContextFactory contextFactory, IAuthorizationEvaluator evaluator, IOptions<AuthorizationOptions> options)
Microsoft.AspNetCore.Authorization.Policy (3)
AuthorizationMiddleware.cs (3)
19ILogger<AuthorizationMiddleware> logger) : AuthorizationMiddleware(next, policyProvider, services, logger) 40private readonly ILogger<AuthorizationMiddleware>? _logger; 65ILogger<AuthorizationMiddleware> logger) : this(next, policyProvider, services)
Microsoft.AspNetCore.Authorization.Test (14)
AuthorizationMiddlewareTests.cs (12)
50var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 90var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 112var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 133var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 155var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 177var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 203var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 246var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 363var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 397var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 613var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 994private AuthorizationMiddleware CreateMiddleware(RequestDelegate requestDelegate = null, IAuthorizationPolicyProvider policyProvider = null, IServiceProvider services = null, ILogger<AuthorizationMiddleware> logger = null)
DefaultAuthorizationServiceTests.cs (2)
1200services.AddSingleton<ILogger<DefaultAuthorizationService>>(new DefaultAuthorizationServiceTestLogger(Assertion)); 1234services.AddSingleton<ILogger<DefaultAuthorizationService>>(new DefaultAuthorizationServiceTestLogger(Assertion));
Microsoft.AspNetCore.BrowserTesting (3)
ContextInformation.cs (1)
31var logger = _factory.CreateLogger<PageInformation>();
PageInformation.cs (2)
12private readonly ILogger<PageInformation> _logger; 22public PageInformation(IPage page, ILogger<PageInformation> logger)
Microsoft.AspNetCore.Components (5)
Infrastructure\ComponentStatePersistenceManager.cs (4)
15private readonly ILogger<ComponentStatePersistenceManager> _logger; 23public ComponentStatePersistenceManager(ILogger<ComponentStatePersistenceManager> logger) 162static Task ExecuteCallback(Func<Task> callback, ILogger<ComponentStatePersistenceManager> logger) 182static async Task Awaited(Task task, ILogger<ComponentStatePersistenceManager> logger)
Routing\Router.cs (1)
29ILogger<Router> _logger;
Microsoft.AspNetCore.Components.Endpoints (36)
Builder\OpaqueRedirection.cs (2)
83if (httpContext.RequestServices.GetService<ILogger<OpaqueRedirection>>() is { } logger) 105public static partial void OpaqueUrlUnprotectionFailed(ILogger<OpaqueRedirection> logger, Exception exception);
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (1)
18public PrerenderingErrorBoundaryLogger(ILogger<ErrorBoundary> logger)
FormMapping\Metadata\FormDataMetadataFactory.cs (24)
22private readonly ILogger<FormDataMetadataFactory> _logger = loggerFactory.CreateLogger<FormDataMetadataFactory>(); 360public static partial void MetadataFound(ILogger<FormDataMetadataFactory> logger, Type type); 363public static partial void NoMetadataFound(ILogger<FormDataMetadataFactory> logger, Type type); 366public static partial void RecursiveTypeFound(ILogger<FormDataMetadataFactory> logger, Type type, string chain); 369public static partial void PrimitiveType(ILogger<FormDataMetadataFactory> logger, Type type); 372public static partial void DictionaryType(ILogger<FormDataMetadataFactory> logger, Type type); 375public static partial void CollectionType(ILogger<FormDataMetadataFactory> logger, Type type); 378public static partial void ObjectType(ILogger<FormDataMetadataFactory> logger, Type type); 381public static partial void ConstructorFound(ILogger<FormDataMetadataFactory> logger, Type type, string parameters); 384public static partial void ConstructorParameter(ILogger<FormDataMetadataFactory> logger, Type type, string name, Type parameterType); 387public static partial void CandidateProperty(ILogger<FormDataMetadataFactory> logger, string name, Type propertyType); 390public static partial void MatchingConstructorParameterFound(ILogger<FormDataMetadataFactory> logger, string constructorParameterName, string propertyName); 393public static partial void CustomParameterNameMetadata(ILogger<FormDataMetadataFactory> logger, string customName, string propertyName); 396public static partial void IgnoredProperty(ILogger<FormDataMetadataFactory> logger, string name); 399public static partial void NonPublicSetter(ILogger<FormDataMetadataFactory> logger, string name); 402public static partial void PropertyRequired(ILogger<FormDataMetadataFactory> logger, string name); 405public static partial void MetadataComputed(ILogger<FormDataMetadataFactory> logger, Type type); 408public static partial void GenericTypeDefinitionNotSupported(ILogger<FormDataMetadataFactory> logger, Type type); 411public static partial void MultiplePublicConstructorsFound(ILogger<FormDataMetadataFactory> logger, Type type); 414public static partial void InterfacesNotSupported(ILogger<FormDataMetadataFactory> logger, Type type); 417public static partial void AbstractClassesNotSupported(ILogger<FormDataMetadataFactory> logger, Type type); 420public static partial void NoPublicConstructorFound(ILogger<FormDataMetadataFactory> logger, Type type); 423public static partial void ConstructorParameterTypeNotSupported(ILogger<FormDataMetadataFactory> logger, Type type, string name, Type parameterType); 426public static partial void PropertyTypeNotSupported(ILogger<FormDataMetadataFactory> logger, Type type, string name, Type propertyType);
RazorComponentEndpointInvoker.cs (9)
23private readonly ILogger<RazorComponentEndpointInvoker> _logger; 25public RazorComponentEndpointInvoker(EndpointHtmlRenderer renderer, ILogger<RazorComponentEndpointInvoker> logger) 281public static partial void BeginRenderRootComponent(ILogger<RazorComponentEndpointInvoker> logger, string componentType, string pageType); 284public static partial void MiddlewareAntiforgeryValidationFailed(ILogger<RazorComponentEndpointInvoker> logger); 287public static partial void MiddlewareAntiforgeryValidationSucceeded(ILogger<RazorComponentEndpointInvoker> logger); 290public static partial void EndpointAntiforgeryValidationDisabled(ILogger<RazorComponentEndpointInvoker> logger); 293public static partial void EndpointAntiforgeryValidationFailed(ILogger<RazorComponentEndpointInvoker> logger); 296public static partial void EndpointAntiforgeryValidationSucceeded(ILogger<RazorComponentEndpointInvoker> logger); 299public static partial void InteractivityDisabledForErrorHandling(ILogger<RazorComponentEndpointInvoker> logger);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1673services.AddSingleton<ILogger<ComponentStatePersistenceManager>, NullLogger<ComponentStatePersistenceManager>>();
Microsoft.AspNetCore.Components.Server (35)
CircuitDisconnectMiddleware.cs (2)
16ILogger<CircuitDisconnectMiddleware> logger, 27public ILogger<CircuitDisconnectMiddleware> Logger { get; }
Circuits\CircuitRegistry.cs (1)
48ILogger<CircuitRegistry> logger,
Circuits\ComponentParameterDeserializer.cs (10)
11private readonly ILogger<ComponentParameterDeserializer> _logger; 15ILogger<ComponentParameterDeserializer> logger, 87internal static partial void ParameterValuesInvalidFormat(ILogger<ComponentParameterDeserializer> logger); 90internal static partial void IncompleteParameterDefinition(ILogger<ComponentParameterDeserializer> logger, string parameterName, string typeName, string assembly); 93internal static partial void InvalidParameterType(ILogger<ComponentParameterDeserializer> logger, string parameterName, string typeName, string assembly); 96internal static partial void InvalidParameterValue(ILogger<ComponentParameterDeserializer> logger, string name, string typeName, string assembly, Exception e); 99internal static partial void FailedToParseParameterDefinitions(ILogger<ComponentParameterDeserializer> logger, Exception e); 102internal static partial void FailedToParseParameterValues(ILogger<ComponentParameterDeserializer> logger, Exception e); 105internal static partial void MismatchedParameterAndDefinitions(ILogger<ComponentParameterDeserializer> logger, int descriptorsLength, int valuesLength); 108internal static partial void MissingParameterDefinitionName(ILogger<ComponentParameterDeserializer> logger);
Circuits\RemoteErrorBoundaryLogger.cs (1)
17public RemoteErrorBoundaryLogger(ILogger<ErrorBoundary> logger, IJSRuntime jsRuntime, IOptions<CircuitOptions> options)
Circuits\RemoteJSRuntime.cs (5)
19private readonly ILogger<RemoteJSRuntime> _logger; 43ILogger<RemoteJSRuntime> logger) 208private static partial void InvokeStaticDotNetMethodSuccess(ILogger<RemoteJSRuntime> logger, string assemblyName, string methodIdentifier, string? callbackId); 211private static partial void InvokeInstanceDotNetMethodSuccess(ILogger<RemoteJSRuntime> logger, string methodIdentifier, long dotNetObjectReference, string? callbackId); 225internal static void InvokeDotNetMethodSuccess(ILogger<RemoteJSRuntime> logger, in DotNetInvocationInfo invocationInfo)
Circuits\RemoteNavigationManager.cs (3)
17private readonly ILogger<RemoteNavigationManager> _logger; 26/// <param name="logger">The <see cref="ILogger{TCategoryName}"/>.</param> 27public RemoteNavigationManager(ILogger<RemoteNavigationManager> logger)
Circuits\ServerComponentDeserializer.cs (12)
61private readonly ILogger<ServerComponentDeserializer> _logger; 74ILogger<ServerComponentDeserializer> logger, 361public static partial void FailedToDeserializeDescriptor(ILogger<ServerComponentDeserializer> logger, Exception e); 364public static partial void FailedToFindComponent(ILogger<ServerComponentDeserializer> logger, string componentName, string assembly); 367public static partial void FailedToUnprotectDescriptor(ILogger<ServerComponentDeserializer> logger, Exception e); 370public static partial void InvalidMarkerType(ILogger<ServerComponentDeserializer> logger, string markerType); 373public static partial void MissingMarkerDescriptor(ILogger<ServerComponentDeserializer> logger); 376public static partial void MismatchedInvocationId(ILogger<ServerComponentDeserializer> logger, string invocationId, string currentInvocationId); 379public static partial void OutOfSequenceDescriptor(ILogger<ServerComponentDeserializer> logger, int lastSequence, int sequence); 382public static partial void DescriptorSequenceMustStartAtZero(ILogger<ServerComponentDeserializer> logger, int sequence); 385public static partial void ExpiredInvocationId(ILogger<ServerComponentDeserializer> logger, string invocationId); 388public static partial void ReusedDescriptorSequence(ILogger<ServerComponentDeserializer> logger, int sequence, string invocationId);
ComponentHub.cs (1)
54ILogger<ComponentHub> logger)
Microsoft.AspNetCore.Components.Server.Tests (15)
Circuits\RemoteJSDataStreamTest.cs (11)
15private static readonly TestRemoteJSRuntime _jsRuntime = new(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 48var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 76var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 104var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 122var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 141var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 160var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 180var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 205var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 246var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 357public TestRemoteJSRuntime(IOptions<CircuitOptions> circuitOptions, IOptions<HubOptions<ComponentHub>> hubOptions, ILogger<RemoteJSRuntime> logger) : base(circuitOptions, hubOptions, logger)
Circuits\RemoteJSRuntimeTest.cs (2)
104var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), componentHubOptions, Mock.Of<ILogger<RemoteJSRuntime>>()); 110public TestRemoteJSRuntime(IOptions<CircuitOptions> circuitOptions, IOptions<HubOptions<ComponentHub>> hubOptions, ILogger<RemoteJSRuntime> logger) : base(circuitOptions, hubOptions, logger)
Circuits\TestCircuitHost.cs (2)
31var jsRuntime = new RemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 32var navigationManager = new RemoteNavigationManager(Mock.Of<ILogger<RemoteNavigationManager>>());
Microsoft.AspNetCore.Components.Tests (2)
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
188var logger = loggerFactory.CreateLogger<ComponentStatePersistenceManager>(); 214var logger = loggerFactory.CreateLogger<ComponentStatePersistenceManager>();
Microsoft.AspNetCore.Components.WebAssembly (3)
Services\WebAssemblyErrorBoundaryLogger.cs (2)
11private readonly ILogger<ErrorBoundary> _errorBoundaryLogger; 13public WebAssemblyErrorBoundaryLogger(ILogger<ErrorBoundary> errorBoundaryLogger)
Services\WebAssemblyNavigationManager.cs (1)
17private ILogger<WebAssemblyNavigationManager> _logger = default!;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (2)
68var logger = endpointBuilder.ServiceProvider.GetRequiredService<ILogger<WebAssemblyComponentsEndpointOptions>>();
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostBuilderTest.cs (1)
216typeof(ILogger<>),
Microsoft.AspNetCore.Components.WebView (3)
Services\WebViewErrorBoundaryLogger.cs (2)
11private readonly ILogger<ErrorBoundary> _errorBoundaryLogger; 13public WebViewErrorBoundaryLogger(ILogger<ErrorBoundary> errorBoundaryLogger)
Services\WebViewNavigationManager.cs (1)
14public WebViewNavigationManager(ILogger<WebViewNavigationManager> logger)
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\BlazorWebViewHandler.iOS.cs (1)
55 internal ILogger Logger => _logger ??= Services!.GetService<ILogger<BlazorWebViewHandler>>() ?? NullLogger<BlazorWebViewHandler>.Instance;
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (2)
170 var logger = Services.GetService<ILogger<BlazorWebView>>() ?? NullLogger<BlazorWebView>.Instance;
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
253 var logger = Services.GetService<ILogger<BlazorWebView>>() ?? NullLogger<BlazorWebView>.Instance;
Microsoft.AspNetCore.DataProtection (5)
EphemeralDataProtectionProvider.cs (1)
60var logger = loggerFactory.CreateLogger<EphemeralDataProtectionProvider>();
Internal\DataProtectionHostedService.cs (1)
17private readonly ILogger<DataProtectionHostedService> _logger;
Internal\KeyManagementOptionsPostSetup.cs (2)
33private readonly ILogger<KeyManagementOptionsPostSetup>? _logger; // Null iff _keyDirectoryPath is null 62var logger = _logger!;
Repositories\EphemeralXmlRepository.cs (1)
23var logger = loggerFactory.CreateLogger<EphemeralXmlRepository>();
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
DatabaseDeveloperPageExceptionFilter.cs (1)
35public DatabaseDeveloperPageExceptionFilter(ILogger<DatabaseDeveloperPageExceptionFilter> logger, IOptions<DatabaseErrorPageOptions> options)
MigrationsEndPointMiddleware.cs (1)
33ILogger<MigrationsEndPointMiddleware> logger,
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\HttpLoggingRedactionInterceptor.cs (2)
28private readonly ILogger<HttpLoggingRedactionInterceptor> _logger; 39ILogger<HttpLoggingRedactionInterceptor> logger,
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (1)
16private readonly ILogger<JsonTranscodingServiceMethodProvider<TService>> _logger;
Microsoft.AspNetCore.HeaderParsing (2)
HeaderParsingFeature.cs (2)
29internal HeaderParsingFeature(IHeaderRegistry registry, ILogger<HeaderParsingFeature> logger, HeaderParsingMetrics metrics) 95ILogger<HeaderParsingFeature> logger,
Microsoft.AspNetCore.HostFiltering (4)
HostFilteringMiddleware.cs (2)
28private readonly ILogger<HostFilteringMiddleware> _logger; 39ILogger<HostFilteringMiddleware> logger,
MiddlewareConfigurationManager.cs (2)
18private readonly ILogger<HostFilteringMiddleware> _logger; 20internal MiddlewareConfigurationManager(IOptionsMonitor<HostFilteringOptions> _optionsMonitor, ILogger<HostFilteringMiddleware> logger)
Microsoft.AspNetCore.Hosting (6)
Internal\ApplicationLifetime.cs (2)
23private readonly ILogger<ApplicationLifetime> _logger; 25public ApplicationLifetime(ILogger<ApplicationLifetime> logger)
Internal\WebHost.cs (2)
234var logger = _applicationServices.GetRequiredService<ILogger<WebHost>>();
WebHostBuilder.cs (2)
176var logger = host.Services.GetRequiredService<ILogger<WebHost>>();
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
56var logger = LoggerFactory.CreateLogger<HostingApplication>();
Microsoft.AspNetCore.Http (4)
Internal\ResponseCookies.cs (2)
54_logger = services?.GetService<ILogger<ResponseCookies>>(); 78_logger = services?.GetService<ILogger<ResponseCookies>>();
Timeouts\RequestTimeoutsMiddleware.cs (2)
14private readonly ILogger<RequestTimeoutsMiddleware> _logger; 20ILogger<RequestTimeoutsMiddleware> logger,
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionManager.cs (2)
25private readonly ILogger<HttpConnectionManager> _logger; 26private readonly ILogger<HttpConnectionContext> _connectionLogger;
Microsoft.AspNetCore.Http.Extensions (24)
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (24)
22private readonly ILogger<FormDataMetadataFactory> _logger = loggerFactory.CreateLogger<FormDataMetadataFactory>(); 360public static partial void MetadataFound(ILogger<FormDataMetadataFactory> logger, Type type); 363public static partial void NoMetadataFound(ILogger<FormDataMetadataFactory> logger, Type type); 366public static partial void RecursiveTypeFound(ILogger<FormDataMetadataFactory> logger, Type type, string chain); 369public static partial void PrimitiveType(ILogger<FormDataMetadataFactory> logger, Type type); 372public static partial void DictionaryType(ILogger<FormDataMetadataFactory> logger, Type type); 375public static partial void CollectionType(ILogger<FormDataMetadataFactory> logger, Type type); 378public static partial void ObjectType(ILogger<FormDataMetadataFactory> logger, Type type); 381public static partial void ConstructorFound(ILogger<FormDataMetadataFactory> logger, Type type, string parameters); 384public static partial void ConstructorParameter(ILogger<FormDataMetadataFactory> logger, Type type, string name, Type parameterType); 387public static partial void CandidateProperty(ILogger<FormDataMetadataFactory> logger, string name, Type propertyType); 390public static partial void MatchingConstructorParameterFound(ILogger<FormDataMetadataFactory> logger, string constructorParameterName, string propertyName); 393public static partial void CustomParameterNameMetadata(ILogger<FormDataMetadataFactory> logger, string customName, string propertyName); 396public static partial void IgnoredProperty(ILogger<FormDataMetadataFactory> logger, string name); 399public static partial void NonPublicSetter(ILogger<FormDataMetadataFactory> logger, string name); 402public static partial void PropertyRequired(ILogger<FormDataMetadataFactory> logger, string name); 405public static partial void MetadataComputed(ILogger<FormDataMetadataFactory> logger, Type type); 408public static partial void GenericTypeDefinitionNotSupported(ILogger<FormDataMetadataFactory> logger, Type type); 411public static partial void MultiplePublicConstructorsFound(ILogger<FormDataMetadataFactory> logger, Type type); 414public static partial void InterfacesNotSupported(ILogger<FormDataMetadataFactory> logger, Type type); 417public static partial void AbstractClassesNotSupported(ILogger<FormDataMetadataFactory> logger, Type type); 420public static partial void NoPublicConstructorFound(ILogger<FormDataMetadataFactory> logger, Type type); 423public static partial void ConstructorParameterTypeNotSupported(ILogger<FormDataMetadataFactory> logger, Type type, string name, Type parameterType); 426public static partial void PropertyTypeNotSupported(ILogger<FormDataMetadataFactory> logger, Type type, string name, Type propertyType);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsDefaultWriterTest.cs (1)
695services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
Microsoft.AspNetCore.Http.Results.Tests (19)
ChallengeResultTests.cs (1)
67services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
ContentResultTests.cs (1)
173services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
FileContentResultTests.cs (1)
30.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>))
ForbidResultTests.cs (1)
134services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
LocalRedirectResultTests.cs (1)
123serviceCollection.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
NoContentResultTests.cs (1)
93services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
ProblemResultTests.cs (1)
253services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
RedirectToRouteResultTests.cs (1)
113services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
ResultsOfTTests.cs (1)
57services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
SignInResultTests.cs (1)
101services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
SignOutResultTests.cs (1)
100services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
444services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
462services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
65serviceCollection.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
493services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
StatusCodeResultTests.cs (1)
50services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
UnauthorizedResultTests.cs (1)
60services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
Utf8ContentResultTests.cs (1)
91services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
ValidationProblemResultTests.cs (1)
179services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingMiddleware.cs (1)
26public HttpLoggingMiddleware(RequestDelegate next, IOptionsMonitor<HttpLoggingOptions> options, ILogger<HttpLoggingMiddleware> logger,
Microsoft.AspNetCore.Identity (5)
AspNetRoleManager.cs (1)
30ILogger<RoleManager<TRole>> logger,
AspNetUserManager.cs (1)
39ILogger<UserManager<TUser>> logger)
DataProtectorTokenProvider.cs (2)
26ILogger<DataProtectorTokenProvider<TUser>> logger) 67public ILogger<DataProtectorTokenProvider<TUser>> Logger { get; }
SignInManager.cs (1)
44ILogger<SignInManager<TUser>> logger,
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
SqlStoreTestBase.cs (2)
53services.AddSingleton<ILogger<UserManager<TUser>>>(new TestLogger<UserManager<TUser>>()); 54services.AddSingleton<ILogger<RoleManager<TRole>>>(new TestLogger<RoleManager<TRole>>());
src\Identity\test\Shared\MockHelpers.cs (1)
48new Mock<ILogger<UserManager<TUser>>>().Object);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
48new Mock<ILogger<UserManager<TUser>>>().Object);
Microsoft.AspNetCore.Identity.Specification.Tests (4)
IdentitySpecificationTestBase.cs (3)
55services.AddSingleton<ILogger<UserManager<TUser>>>(new TestLogger<UserManager<TUser>>()); 56services.AddSingleton<ILogger<RoleManager<TRole>>>(new TestLogger<RoleManager<TRole>>()); 70services.AddSingleton<ILogger<RoleManager<TRole>>>(new TestLogger<RoleManager<TRole>>());
UserManagerSpecificationTests.cs (1)
67services.AddSingleton<ILogger<UserManager<TUser>>>(new TestLogger<UserManager<TUser>>());
Microsoft.AspNetCore.Identity.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
48new Mock<ILogger<UserManager<TUser>>>().Object);
Microsoft.AspNetCore.Identity.UI (60)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
98private readonly ILogger<ExternalLoginModel> _logger; 104ILogger<ExternalLoginModel> logger,
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (2)
95private readonly ILogger<LoginModel> _logger; 97public LoginModel(SignInManager<TUser> signInManager, ILogger<LoginModel> logger)
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (2)
81private readonly ILogger<LoginWith2faModel> _logger; 86ILogger<LoginWith2faModel> logger)
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (2)
68private readonly ILogger<LoginWithRecoveryCodeModel> _logger; 73ILogger<LoginWithRecoveryCodeModel> logger)
Areas\Identity\Pages\V4\Account\Logout.cshtml.cs (2)
37private readonly ILogger<LogoutModel> _logger; 39public LogoutModel(SignInManager<TUser> signInManager, ILogger<LogoutModel> logger)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (2)
84private readonly ILogger<ChangePasswordModel> _logger; 89ILogger<ChangePasswordModel> logger)
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (2)
63private readonly ILogger<DeletePersonalDataModel> _logger; 68ILogger<DeletePersonalDataModel> logger)
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (2)
40private readonly ILogger<Disable2faModel> _logger; 44ILogger<Disable2faModel> logger)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (2)
35private readonly ILogger<DownloadPersonalDataModel> _logger; 39ILogger<DownloadPersonalDataModel> logger)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (2)
88private readonly ILogger<EnableAuthenticatorModel> _logger; 95ILogger<EnableAuthenticatorModel> logger,
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
48private readonly ILogger<GenerateRecoveryCodesModel> _logger; 52ILogger<GenerateRecoveryCodesModel> logger)
Areas\Identity\Pages\V4\Account\Manage\PersonalData.cshtml.cs (2)
27private readonly ILogger<PersonalDataModel> _logger; 31ILogger<PersonalDataModel> logger)
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (2)
41readonly ILogger<ResetAuthenticatorModel> _logger; 46ILogger<ResetAuthenticatorModel> logger)
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
66private readonly ILogger<TwoFactorAuthenticationModel> _logger; 69UserManager<TUser> userManager, SignInManager<TUser> signInManager, ILogger<TwoFactorAuthenticationModel> logger)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
99private readonly ILogger<RegisterModel> _logger; 106ILogger<RegisterModel> logger,
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
98private readonly ILogger<ExternalLoginModel> _logger; 104ILogger<ExternalLoginModel> logger,
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (2)
95private readonly ILogger<LoginModel> _logger; 97public LoginModel(SignInManager<TUser> signInManager, ILogger<LoginModel> logger)
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (2)
81private readonly ILogger<LoginWith2faModel> _logger; 86ILogger<LoginWith2faModel> logger)
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (2)
68private readonly ILogger<LoginWithRecoveryCodeModel> _logger; 73ILogger<LoginWithRecoveryCodeModel> logger)
Areas\Identity\Pages\V5\Account\Logout.cshtml.cs (2)
37private readonly ILogger<LogoutModel> _logger; 39public LogoutModel(SignInManager<TUser> signInManager, ILogger<LogoutModel> logger)
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (2)
84private readonly ILogger<ChangePasswordModel> _logger; 89ILogger<ChangePasswordModel> logger)
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (2)
63private readonly ILogger<DeletePersonalDataModel> _logger; 68ILogger<DeletePersonalDataModel> logger)
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (2)
40private readonly ILogger<Disable2faModel> _logger; 44ILogger<Disable2faModel> logger)
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (2)
35private readonly ILogger<DownloadPersonalDataModel> _logger; 39ILogger<DownloadPersonalDataModel> logger)
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (2)
88private readonly ILogger<EnableAuthenticatorModel> _logger; 95ILogger<EnableAuthenticatorModel> logger,
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
48private readonly ILogger<GenerateRecoveryCodesModel> _logger; 52ILogger<GenerateRecoveryCodesModel> logger)
Areas\Identity\Pages\V5\Account\Manage\PersonalData.cshtml.cs (2)
27private readonly ILogger<PersonalDataModel> _logger; 31ILogger<PersonalDataModel> logger)
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (2)
41private readonly ILogger<ResetAuthenticatorModel> _logger; 46ILogger<ResetAuthenticatorModel> logger)
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
66private readonly ILogger<TwoFactorAuthenticationModel> _logger; 69UserManager<TUser> userManager, SignInManager<TUser> signInManager, ILogger<TwoFactorAuthenticationModel> logger)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
99private readonly ILogger<RegisterModel> _logger; 106ILogger<RegisterModel> logger,
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLoggerT.cs (1)
10private readonly ILogger<T> _logger;
Microsoft.AspNetCore.Mvc.Core (10)
Formatters\SystemTextJsonInputFormatter.cs (2)
17private readonly ILogger<SystemTextJsonInputFormatter> _logger; 26ILogger<SystemTextJsonInputFormatter> logger)
Infrastructure\ClientErrorResultFilter.cs (2)
13private readonly ILogger<ClientErrorResultFilter> _logger; 17ILogger<ClientErrorResultFilter> logger)
Infrastructure\ContentResultExecutor.cs (2)
19private readonly ILogger<ContentResultExecutor> _logger; 27public ContentResultExecutor(ILogger<ContentResultExecutor> logger, IHttpResponseStreamWriterFactory httpResponseStreamWriterFactory)
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (1)
31ILogger<DefaultActionDescriptorCollectionProvider> logger)
Infrastructure\SystemTextJsonResultExecutor.cs (2)
24private readonly ILogger<SystemTextJsonResultExecutor> _logger; 28ILogger<SystemTextJsonResultExecutor> logger)
ModelBinding\ModelBinderFactory.cs (1)
46var logger = loggerFactory.CreateLogger<ModelBinderFactory>();
Microsoft.AspNetCore.Mvc.Core.Test (6)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
218services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
21private readonly ILogger<ComplexObjectModelBinder> _logger = NullLogger<ComplexObjectModelBinder>.Instance;
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
444services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
462services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
65serviceCollection.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
493services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
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.NewtonsoftJson (4)
NewtonsoftJsonOutputFormatter.cs (2)
155var logger = context.HttpContext.RequestServices.GetRequiredService<ILogger<NewtonsoftJsonOutputFormatter>>();
NewtonsoftJsonResultExecutor.cs (2)
38/// <param name="logger">The <see cref="ILogger{NewtonsoftJsonResultExecutor}"/>.</param> 44ILogger<NewtonsoftJsonResultExecutor> logger,
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\DefaultViewCompiler.cs (1)
28ILogger<DefaultViewCompiler> logger)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
RazorProjectPageRouteModelProvider.cs (1)
19private readonly ILogger<RazorProjectPageRouteModelProvider> _logger;
RuntimeViewCompilerProvider.cs (1)
17private readonly ILogger<RuntimeViewCompiler> _logger;
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\CompiledPageRouteModelProvider.cs (1)
27ILogger<CompiledPageRouteModelProvider> logger)
Infrastructure\PageActionInvokerProvider.cs (1)
26private readonly ILogger<PageActionInvoker> _logger;
Infrastructure\PageRequestDelegateFactory.cs (1)
27private readonly ILogger<PageActionInvoker> _logger;
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (1)
494ILogger<CompiledPageRouteModelProvider> logger)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
ScriptTagHelperTest.cs (1)
459var logger = new Mock<ILogger<ScriptTagHelper>>();
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
294.AddTransient(typeof(ILogger<>), typeof(Logger<>));
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Filters\AntiforgeryApplicationModelProvider.cs (1)
12internal sealed class AntiforgeryApplicationModelProvider(IOptions<MvcOptions> mvcOptions, ILogger<AntiforgeryMiddlewareAuthorizationFilter> logger) : IApplicationModelProvider
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
9internal sealed partial class AntiforgeryMiddlewareAuthorizationFilter(ILogger<AntiforgeryMiddlewareAuthorizationFilter> logger) : IAsyncAuthorizationFilter
ViewComponentResultExecutor.cs (1)
30private readonly ILogger<ViewComponentResult> _logger;
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStoreImpl.cs (1)
11public RedisOutputCacheStoreImpl(IOptions<RedisOutputCacheOptions> optionsAccessor, ILogger<RedisOutputCacheStore> logger)
Microsoft.AspNetCore.OutputCaching.Tests (2)
TestUtils.cs (2)
227serviceProvider.Setup(x => x.GetService(typeof(ILogger<OutputCacheMiddleware>))).Returns(testSink == null ? NullLogger.Instance : new TestLogger("OutputCachingTests", testSink, true)); 247serviceProvider.Setup(x => x.GetService(typeof(ILogger<OutputCacheMiddleware>))).Returns(testSink == null ? NullLogger.Instance : new TestLogger("OutputCachingTests", testSink, true));
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMiddleware.cs (1)
35public RateLimitingMiddleware(RequestDelegate next, ILogger<RateLimitingMiddleware> logger, IOptions<RateLimiterOptions> options, IServiceProvider serviceProvider, RateLimitingMetrics metrics)
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingMetricsTests.cs (1)
335private RateLimitingMiddleware CreateTestRateLimitingMiddleware(IOptions<RateLimiterOptions> options, ILogger<RateLimitingMiddleware> logger = null, IServiceProvider serviceProvider = null, IMeterFactory meterFactory = null, RequestDelegate next = null)
RateLimitingMiddlewareTests.cs (1)
646private RateLimitingMiddleware CreateTestRateLimitingMiddleware(IOptions<RateLimiterOptions> options, ILogger<RateLimitingMiddleware> logger = null, IServiceProvider serviceProvider = null) =>
Microsoft.AspNetCore.RequestDecompression (3)
DefaultRequestDecompressionProvider.cs (1)
19ILogger<DefaultRequestDecompressionProvider> logger,
RequestDecompressionMiddleware.cs (2)
17private readonly ILogger<RequestDecompressionMiddleware> _logger; 28ILogger<RequestDecompressionMiddleware> logger,
Microsoft.AspNetCore.RequestDecompression.Tests (4)
DefaultRequestDecompressionProviderTests.cs (3)
149ILogger<DefaultRequestDecompressionProvider> logger = null; 159private static (ILogger<DefaultRequestDecompressionProvider>, TestSink) GetTestLogger() 166var logger = loggerFactory.CreateLogger<DefaultRequestDecompressionProvider>();
RequestDecompressionMiddlewareTests.cs (1)
617ILogger<RequestDecompressionMiddleware> logger = null;
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
71_logger = services.GetRequiredService<ILogger<ResponseCompressionProvider>>();
Microsoft.AspNetCore.Routing (8)
DefaultLinkGenerator.cs (2)
25private readonly ILogger<DefaultLinkGenerator> _logger; 42ILogger<DefaultLinkGenerator> logger,
DefaultLinkParser.cs (2)
16private readonly ILogger<DefaultLinkParser> _logger; 28ILogger<DefaultLinkParser> logger,
EndpointMiddleware.cs (1)
24ILogger<EndpointMiddleware> logger,
EndpointRoutingMiddleware.cs (1)
36ILogger<EndpointRoutingMiddleware> logger,
Matching\DfaMatcher.cs (1)
22public DfaMatcher(ILogger<DfaMatcher> logger, EndpointSelector selector, DfaState[] states, int maxSegmentCount)
RouteConstraintMatcher.cs (1)
34/// <param name="logger">The <see cref="ILogger{TCategoryName}"/>.</param>
Microsoft.AspNetCore.Routing.Tests (3)
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
205ILogger<EndpointRoutingMiddleware> logger = null,
EndpointRoutingMiddlewareTest.cs (1)
465ILogger<EndpointRoutingMiddleware> logger = null,
RoutingMetricsTests.cs (1)
151ILogger<EndpointRoutingMiddleware> logger = null,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
27private readonly ILogger<Http2CatHostedService> _logger; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpServer.cs (2)
27private readonly ILogger<IISHttpServer> _logger; 64ILogger<IISHttpServer> logger
Microsoft.AspNetCore.Server.Kestrel.Core (75)
HttpsConfigurationService.cs (9)
27private Action<FeatureCollection, ListenOptions, ILogger<HttpsConnectionMiddleware>>? _populateMultiplexedTransportFeatures; 30private ILogger<HttpsConnectionMiddleware>? _httpsLogger; 59ILogger<KestrelServer> serverLogger, 60ILogger<HttpsConnectionMiddleware> httpsLogger) 144internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<HttpsConnectionMiddleware> logger) 244private readonly ILogger<KestrelServer> _serverLogger; 245private readonly ILogger<HttpsConnectionMiddleware> _httpsLogger; 249ILogger<KestrelServer> serverLogger, 250ILogger<HttpsConnectionMiddleware> httpsLogger)
IHttpsConfigurationService.cs (2)
33ILogger<KestrelServer> serverLogger, 34ILogger<HttpsConnectionMiddleware> httpsLogger);
Internal\CertificatePathWatcher.cs (3)
18private readonly ILogger<CertificatePathWatcher> _logger; 30public CertificatePathWatcher(IHostEnvironment hostEnvironment, ILogger<CertificatePathWatcher> logger) 49internal CertificatePathWatcher(string contentRootPath, ILogger<CertificatePathWatcher> logger, Func<string, IFileProvider?> fileProviderFactory)
Internal\CertificatePathWatcherLoggerExtensions.cs (16)
11public static partial void DirectoryDoesNotExist(this ILogger<CertificatePathWatcher> logger, string directory, string path); 14public static partial void UnknownFile(this ILogger<CertificatePathWatcher> logger, string path); 17public static partial void UnknownObserver(this ILogger<CertificatePathWatcher> logger, string path); 20public static partial void CreatedDirectoryWatcher(this ILogger<CertificatePathWatcher> logger, string directory); 23public static partial void CreatedFileWatcher(this ILogger<CertificatePathWatcher> logger, string path); 26public static partial void RemovedDirectoryWatcher(this ILogger<CertificatePathWatcher> logger, string directory); 29public static partial void RemovedFileWatcher(this ILogger<CertificatePathWatcher> logger, string path); 32public static partial void LastModifiedTimeError(this ILogger<CertificatePathWatcher> logger, string path, Exception e); 35public static partial void UntrackedFileEvent(this ILogger<CertificatePathWatcher> logger, string path); 38public static partial void ReusedObserver(this ILogger<CertificatePathWatcher> logger, string path); 41public static partial void AddedObserver(this ILogger<CertificatePathWatcher> logger, string path); 44public static partial void RemovedObserver(this ILogger<CertificatePathWatcher> logger, string path); 47public static partial void ObserverCount(this ILogger<CertificatePathWatcher> logger, string path, int count); 50public static partial void FileCount(this ILogger<CertificatePathWatcher> logger, string directory, int count); 53public static partial void FlaggedObservers(this ILogger<CertificatePathWatcher> logger, string path, int count); 56public static partial void EventWithoutFile(this ILogger<CertificatePathWatcher> logger, string path);
Internal\Certificates\CertificateConfigLoader.cs (2)
15public CertificateConfigLoader(IHostEnvironment hostEnvironment, ILogger<KestrelServer> logger) 22public ILogger<KestrelServer> Logger { get; }
Internal\LoggerExtensions.cs (11)
16private static partial void LocatedDevelopmentCertificate(this ILogger<KestrelServer> logger, string certificateSubjectName, string certificateThumbprint); 18public static void LocatedDevelopmentCertificate(this ILogger<KestrelServer> logger, X509Certificate2 certificate) => LocatedDevelopmentCertificate(logger, certificate.Subject, certificate.Thumbprint); 21public static partial void UnableToLocateDevelopmentCertificate(this ILogger<KestrelServer> logger); 24public static partial void FailedToLocateDevelopmentCertificateFile(this ILogger<KestrelServer> logger, string certificatePath); 27public static partial void FailedToLoadDevelopmentCertificate(this ILogger<KestrelServer> logger, string certificatePath); 30public static partial void BadDeveloperCertificateState(this ILogger<KestrelServer> logger); 33public static partial void DeveloperCertificateFirstRun(this ILogger<KestrelServer> logger, string message); 36public static partial void FailedToLoadCertificate(this ILogger<KestrelServer> logger, string certificateFilePath); 39public static partial void FailedToLoadCertificateKey(this ILogger<KestrelServer> logger, string certificateKeyFilePath); 42public static partial void DeveloperCertificateNotTrusted(this ILogger<KestrelServer> logger); 45public static partial void DeveloperCertificatePartiallyTrusted(this ILogger<KestrelServer> logger);
Internal\SniOptionsSelector.cs (2)
23private readonly ILogger<HttpsConnectionMiddleware> _logger; 38ILogger<HttpsConnectionMiddleware> logger)
KestrelServer.cs (2)
82public void Initialize(IHostEnvironment hostEnvironment, ILogger<KestrelServer> serverLogger, ILogger<HttpsConnectionMiddleware> httpsLogger)
KestrelServerOptions.cs (8)
313var logger = ApplicationServices!.GetRequiredService<ILogger<KestrelServer>>(); 327var logger = ApplicationServices.GetRequiredService<ILogger<KestrelServer>>(); 328var httpsLogger = ApplicationServices.GetRequiredService<ILogger<HttpsConnectionMiddleware>>(); 374private static X509Certificate2? GetDevelopmentCertificateFromStore(ILogger<KestrelServer> logger) 462ApplicationServices.GetRequiredService<ILogger<CertificatePathWatcher>>())
Middleware\HttpsConnectionMiddleware.cs (16)
33private readonly ILogger<HttpsConnectionMiddleware> _logger; 468internal static void EnsureCertificateIsAllowedForServerAuth(X509Certificate2 certificate, ILogger<HttpsConnectionMiddleware> logger) 495internal static HttpProtocols ValidateAndNormalizeHttpProtocols(HttpProtocols httpProtocols, ILogger<HttpsConnectionMiddleware> logger) 534internal static SslServerAuthenticationOptions CreateHttp3Options(HttpsConnectionAdapterOptions httpsOptions, ILogger<HttpsConnectionMiddleware> logger) 584public static partial void AuthenticationFailed(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 587public static partial void AuthenticationTimedOut(this ILogger<HttpsConnectionMiddleware> logger); 590public static partial void HttpsConnectionEstablished(this ILogger<HttpsConnectionMiddleware> logger, string connectionId, SslProtocols protocol); 594public static partial void Http2DefaultCiphersInsufficient(this ILogger<HttpsConnectionMiddleware> logger); 597private static partial void LocatingCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, string thumbPrint); 599public static void LocatingCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, X509Certificate2 certificate) => LocatingCertWithPrivateKey(logger, certificate.Thumbprint); 602public static partial void FoundCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, string thumbprint, string? storeName); 604public static void FoundCertWithPrivateKey(this ILogger<HttpsConnectionMiddleware> logger, X509Certificate2 certificate, StoreLocation storeLocation) 611public static partial void FailedToFindCertificateInStore(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 614public static partial void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, string? storeName, Exception exception); 617public static partial void NoSubjectAlternativeName(this ILogger<HttpsConnectionMiddleware> logger, string thumbprint); 619public static void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, StoreLocation storeLocation, Exception exception)
TlsConfigurationLoader.cs (4)
26private readonly ILogger<KestrelServer> _serverLogger; 27private readonly ILogger<HttpsConnectionMiddleware> _httpsLogger; 31ILogger<KestrelServer> serverLogger, 32ILogger<HttpsConnectionMiddleware> httpsLogger)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (40)
CertificatePathWatcherTests.cs (10)
25var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 75var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 125var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 175var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 215var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 242var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 276var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 316var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 347var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 407var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>();
KestrelServerOptionsTests.cs (2)
85serviceCollection.AddSingleton(Mock.Of<ILogger<KestrelServer>>()); 86serviceCollection.AddSingleton(Mock.Of<ILogger<HttpsConnectionMiddleware>>());
KestrelServerTests.cs (7)
302serviceProvider.GetRequiredService<ILogger<KestrelServer>>(), 303serviceProvider.GetRequiredService<ILogger<HttpsConnectionMiddleware>>()); 790serviceCollection.AddSingleton(Mock.Of<ILogger<KestrelServer>>()); 791serviceCollection.AddSingleton(Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 792serviceCollection.AddSingleton(Mock.Of<ILogger<CertificatePathWatcher>>()); 929serviceCollection.AddSingleton(Mock.Of<ILogger<KestrelServer>>()); 930serviceCollection.AddSingleton(Mock.Of<ILogger<HttpsConnectionMiddleware>>());
SniOptionsSelectorTests.cs (21)
70logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 127logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 173logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 222logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 285logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 330logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>())); 343logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 378logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 404logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 441logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 484logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 520logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>())); 543logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 571logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 598logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 631logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 661logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 697logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 728logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 758logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>()); 793logger: Mock.Of<ILogger<HttpsConnectionMiddleware>>());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
319var logger = LoggerFactory.CreateLogger<HubConnectionTests>();
Microsoft.AspNetCore.SignalR.Core (7)
DefaultHubLifetimeManager.cs (1)
28public DefaultHubLifetimeManager(ILogger<DefaultHubLifetimeManager<THub>> logger)
HubConnectionHandler.cs (1)
24private readonly ILogger<HubConnectionHandler<THub>> _logger;
Internal\DefaultHubDispatcher.cs (3)
29private readonly ILogger<HubDispatcher<THub>> _logger; 43bool disableImplicitFromServiceParameters, ILogger<DefaultHubDispatcher<THub>> logger, List<IHubFilter>? hubFilters, HubLifetimeManager<THub> lifetimeManager) 395var logger = dispatcher._logger;
Internal\DefaultHubProtocolResolver.cs (2)
13private readonly ILogger<DefaultHubProtocolResolver> _logger; 19public DefaultHubProtocolResolver(IEnumerable<IHubProtocol> availableProtocols, ILogger<DefaultHubProtocolResolver> logger)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
50public RedisHubLifetimeManager(ILogger<RedisHubLifetimeManager<THub>> logger, 65public RedisHubLifetimeManager(ILogger<RedisHubLifetimeManager<THub>> logger,
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisHubLifetimeManagerTests.cs (1)
100var loggerT = mockLoggerFactory.Object.CreateLogger<RedisHubLifetimeManager<Hub>>();
Microsoft.AspNetCore.SignalR.Tests (18)
EndToEndTests.cs (13)
92var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 130var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 169var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 219var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 262var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 320var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 384var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 408var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 438var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 474var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 544var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 609var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 648var logger = LoggerFactory.CreateLogger<EndToEndTests>();
NativeAotTests.cs (5)
194public async Task TaskMethod(ILogger<AsyncMethodHub> logger) 200public async ValueTask ValueTaskMethod(ILogger<AsyncMethodHub> logger) 206public TaskDerivedType CustomTaskMethod(ILogger<AsyncMethodHub> logger) 345public async Task StreamValueType(ILogger<ChannelValueTypeMethodHub> logger, ChannelReader<double> source) 356public async Task StreamValueType(ILogger<EnumerableValueTypeMethodHub> logger, IAsyncEnumerable<float> source)
Microsoft.AspNetCore.SpaProxy (6)
SpaProxyLaunchManager.cs (2)
16private readonly ILogger<SpaProxyLaunchManager> _logger; 24ILogger<SpaProxyLaunchManager> logger,
SpaProxyMiddleware.cs (2)
28private readonly ILogger<SpaProxyMiddleware> _logger; 35ILogger<SpaProxyMiddleware> logger)
SpaProxyStartupFilter.cs (2)
15private readonly ILogger<SpaProxyStartupFilter> _logger; 20ILogger<SpaProxyStartupFilter> logger)
Microsoft.AspNetCore.StaticAssets (5)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
193var logger = endpoints.ServiceProvider.GetRequiredService<ILogger<StaticAssetDevelopmentRuntimeHandler>>();
StaticAssetEndpointFactory.cs (2)
41var logger = serviceProvider.GetRequiredService<ILogger<StaticAssetsInvoker>>();
StaticAssetsInvoker.cs (1)
32public StaticAssetsInvoker(StaticAssetDescriptor resource, IFileProvider fileProvider, ILogger<StaticAssetsInvoker> logger)
Microsoft.AspNetCore.TestHost.Tests (6)
ClientHandlerTests.cs (1)
697services.AddSingleton<ILogger<IWebHost>>(logger);
HttpContextBuilderTests.cs (1)
312services.AddSingleton<ILogger<IWebHost>>(logger);
TestClientTests.cs (2)
604services.AddSingleton<ILogger<IWebHost>>(logger); 724.ConfigureServices(services => services.AddSingleton<ILogger<IWebHost>>(logger))
TestServerTests.cs (2)
562var logger = app.ApplicationServices.GetRequiredService<ILogger<HttpContext>>();
Microsoft.AspNetCore.Tests (7)
WebApplicationTests.cs (5)
1630var logger = app.Services.GetRequiredService<ILogger<WebApplicationTests>>(); 1650var logger = app.Services.GetRequiredService<ILogger<WebApplicationTests>>(); 2426Assert.Contains(builder.Services, service => service.ServiceType == typeof(ILogger<>));
WebHostTests.cs (2)
105var logger = host.Services.GetRequiredService<ILogger<WebHostTests>>();
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
AutobahnTests.cs (1)
34var logger = loggerFactory.CreateLogger<AutobahnTests>();
Microsoft.CodeAnalysis.LanguageServer (3)
ExportProviderBuilder.cs (1)
33var logger = loggerFactory.CreateLogger<ExportProviderBuilder>();
Program.cs (1)
62var logger = loggerFactory.CreateLogger<Program>();
Services\ExtensionAssemblyManager.cs (1)
50var logger = loggerFactory.CreateLogger<ExportProviderBuilder>();
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCacheImpl.cs (1)
11public RedisCacheImpl(IOptions<RedisCacheOptions> optionsAccessor, ILogger<RedisCache> logger)
Microsoft.Extensions.Diagnostics.HealthChecks (3)
DefaultHealthCheckService.cs (2)
22private readonly ILogger<DefaultHealthCheckService> _logger; 27ILogger<DefaultHealthCheckService> logger)
HealthCheckPublisherHostedService.cs (1)
35ILogger<HealthCheckPublisherHostedService> logger,
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
TelemetryHealthCheckPublisher.cs (1)
28public TelemetryHealthCheckPublisher(HealthCheckMetrics metrics, ILogger<TelemetryHealthCheckPublisher> logger, IOptions<TelemetryHealthCheckPublisherOptions> options)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
DefaultHealthCheckServiceTest.cs (2)
44var logger = services.GetRequiredService<ILogger<DefaultHealthCheckService>>();
Microsoft.Extensions.Diagnostics.Probes (2)
TcpEndpointProbesService.cs (2)
23private readonly ILogger<TcpEndpointProbesService> _logger; 30public TcpEndpointProbesService(ILogger<TcpEndpointProbesService> logger, HealthCheckService healthCheckService, TcpEndpointProbesOptions options)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
ResourceMonitorService.cs (3)
40private readonly ILogger<ResourceMonitorService> _logger; 56ILogger<ResourceMonitorService> logger, 65ILogger<ResourceMonitorService> logger,
Windows\WindowsContainerSnapshotProvider.cs (3)
30private readonly ILogger<WindowsContainerSnapshotProvider> _logger; 49ILogger<WindowsContainerSnapshotProvider>? logger, 66ILogger<WindowsContainerSnapshotProvider>? logger,
Windows\WindowsSnapshotProvider.cs (3)
24private readonly ILogger<WindowsSnapshotProvider> _logger; 39public WindowsSnapshotProvider(ILogger<WindowsSnapshotProvider>? logger, IMeterFactory meterFactory, IOptions<ResourceMonitoringOptions> options) 46ILogger<WindowsSnapshotProvider>? logger,
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (8)
ResourceMonitoringServiceTests.cs (8)
42var mockLogger = new Mock<ILogger<ResourceMonitorService>>(MockBehavior.Loose); 56var logger = GetDataTrackerField<ILogger<ResourceMonitorService>>(tracker, "_logger"); 70var mockLogger = new Mock<ILogger<ResourceMonitorService>>(MockBehavior.Loose); 85var mockLogger = new Mock<ILogger<ResourceMonitorService>>(MockBehavior.Loose); 99var mockLogger = new Mock<ILogger<ResourceMonitorService>>(MockBehavior.Loose); 131var mockLogger = new Mock<ILogger<ResourceMonitorService>>(MockBehavior.Loose); 167var mockLogger = new Mock<ILogger<ResourceMonitorService>>(MockBehavior.Loose);
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogRecord.cs (2)
25/// <param name="category">The optional category for this record, which corresponds to the T in <see cref="ILogger{T}"/>.</param> 113/// The category corresponds to the T value in <see cref="ILogger{T}" />.
Microsoft.Extensions.Hosting (5)
HostBuilder.cs (1)
324appServices.GetRequiredService<ILogger<Internal.Host>>(),
Internal\ApplicationLifetime.cs (2)
24private readonly ILogger<ApplicationLifetime> _logger; 30public ApplicationLifetime(ILogger<ApplicationLifetime> logger)
Internal\Host.cs (2)
23private readonly ILogger<Host> _logger; 38ILogger<Host> logger,
Microsoft.Extensions.Hosting.Testing (1)
HostTerminatorService.cs (1)
30public HostTerminatorService(IHost host, FakeHostOptions options, ILogger<HostTerminatorService> logger)
Microsoft.Extensions.Http.Diagnostics (3)
Logging\Internal\HttpClientLogger.cs (3)
35private ILogger<HttpClientLogger> _logger; 41ILogger<HttpClientLogger> logger, 54ILogger<HttpClientLogger> logger,
Microsoft.Extensions.Identity.Core (2)
RoleManager.cs (1)
42ILogger<RoleManager<TRole>> logger)
UserManager.cs (1)
77ILogger<UserManager<TUser>> logger)
Microsoft.Extensions.Logging (1)
LoggingServiceCollectionExtensions.cs (1)
39services.TryAdd(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(Logger<>)));
Microsoft.Extensions.Logging.Abstractions (1)
LoggerFactoryExtensions.cs (1)
20public static ILogger<T> CreateLogger<T>(this ILoggerFactory factory)
Microsoft.Extensions.ML (5)
MLOptions.cs (2)
43private readonly ILogger<MLContext> _logger; 49public PostMLContextOptionsConfiguration(ILogger<MLContext> logger)
ModelLoaders\FileModelLoader.cs (2)
18private readonly ILogger<FileModelLoader> _logger; 28public FileModelLoader(IOptions<MLOptions> contextOptions, ILogger<FileModelLoader> logger)
ModelLoaders\UriModelLoader.cs (1)
35public UriModelLoader(IOptions<MLOptions> contextOptions, ILogger<UriModelLoader> logger)
Microsoft.Extensions.ML.Tests (2)
FileLoaderTests.cs (1)
82public FileLoaderMock(IOptions<MLOptions> contextOptions, ILogger<FileModelLoader> logger)
UriLoaderTests.cs (1)
86ILogger<UriModelLoader> logger) : base(contextOptions, logger)
Microsoft.Extensions.ServiceDiscovery (6)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
23private readonly ILogger<ConfigurationServiceEndpointProvider> _logger; 37ILogger<ConfigurationServiceEndpointProvider> logger,
Configuration\ConfigurationServiceEndpointProviderFactory.cs (1)
18ILogger<ConfigurationServiceEndpointProvider> logger) : IServiceEndpointProviderFactory
PassThrough\PassThroughServiceEndpointProviderFactory.cs (1)
13internal sealed class PassThroughServiceEndpointProviderFactory(ILogger<PassThroughServiceEndpointProvider> logger) : IServiceEndpointProviderFactory
ServiceEndpointWatcherFactory.cs (2)
15ILogger<ServiceEndpointWatcher> logger, 22private readonly ILogger<ServiceEndpointWatcher> _logger = logger;
Microsoft.Extensions.ServiceDiscovery.Dns (4)
DnsServiceEndpointProvider.cs (1)
14ILogger<DnsServiceEndpointProvider> logger,
DnsServiceEndpointProviderFactory.cs (1)
12ILogger<DnsServiceEndpointProvider> logger,
DnsSrvServiceEndpointProvider.cs (1)
17ILogger<DnsSrvServiceEndpointProvider> logger,
DnsSrvServiceEndpointProviderFactory.cs (1)
13ILogger<DnsSrvServiceEndpointProvider> logger,
Microsoft.Gen.Logging.Generated.Tests (3)
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClasses.cs (1)
28public ILogger<int> Logger { get; set; } = null!;
test\Generators\Microsoft.Gen.Logging\TestClasses\SignatureTestExtensions.cs (2)
30public static void Combo(ILogger logger, ILogger<int> logger2) 58private static partial void M4(ILogger<int> logger);
Microsoft.Maui (9)
Handlers\Application\ApplicationHandler.cs (1)
42 ILogger<ApplicationHandler>? _logger;
Hosting\MauiAppBuilder.cs (1)
180 Services.TryAdd(ServiceDescriptor.Singleton(typeof(ILogger<>), typeof(NullLogger<>)));
Hosting\ServiceProviderExtensions.cs (3)
10 internal static ILogger<T>? CreateLogger<T>(this IMauiContext context) => 13 internal static ILogger<T>? CreateLogger<T>(this IServiceProvider services) => 14 services.GetService<ILogger<T>>();
ImageSources\FileImageSourceService\FileImageSourceService.cs (1)
13 public FileImageSourceService(ILogger<FileImageSourceService>? logger = null)
ImageSources\FontImageSourceService\FontImageSourceService.cs (1)
13 public FontImageSourceService(IFontManager fontManager, ILogger<FontImageSourceService>? logger = null)
ImageSources\StreamImageSourceService\StreamImageSourceService.cs (1)
13 public StreamImageSourceService(ILogger<StreamImageSourceService>? logger = null)
ImageSources\UriImageSourceService\UriImageSourceService.cs (1)
13 public UriImageSourceService(ILogger<UriImageSourceService>? logger = null)
Microsoft.Maui.Controls (6)
Application\Application.cs (2)
417 ILogger<Application>? _logger; 419 ILogger<Application>? Logger =>
Platform\ModalNavigationManager\ModalNavigationManager.cs (2)
99 var logger = _window.FindMauiContext(true)?.Services?.CreateLogger<ModalNavigationManager>(); 105 var logger = _window.FindMauiContext(true)?.Services?.CreateLogger<ModalNavigationManager>();
ViewExtensions.cs (1)
321 internal static ILogger<T>? CreateLogger<T>(this Element element, bool fallbackToAppMauiContext = true) =>
Visuals\VisualMarker.cs (1)
29 var logger = Application.Current?.FindMauiContext()?.CreateLogger<IVisual>();
Microsoft.Maui.Maps (3)
src\Core\src\Hosting\ServiceProviderExtensions.cs (3)
10 internal static ILogger<T>? CreateLogger<T>(this IMauiContext context) => 13 internal static ILogger<T>? CreateLogger<T>(this IServiceProvider services) => 14 services.GetService<ILogger<T>>();
Microsoft.ML.GenAI.Core (2)
Trainer\CasualLMSupervisedFineTuningTrainer.cs (2)
18private readonly ILogger<CasualLMSupervisedFineTuningTrainer>? _logger; 21public CasualLMSupervisedFineTuningTrainer(ICausalLMPipeline pipeline, ILogger<CasualLMSupervisedFineTuningTrainer>? logger = null)
Microsoft.ML.GenAI.Samples (1)
Llama\SFT_Llama_3_2_1B.cs (1)
28var logger = loggerFactory.CreateLogger<CasualLMSupervisedFineTuningTrainer>();
MilvusPlayground.ApiService (2)
Program.cs (2)
20app.MapGet("/create", async (MilvusClient milvusClient, ILogger<Program> logger) => 103app.MapGet("/search", async (MilvusClient milvusClient, ILogger<Program> logger) =>
MvcFormSample (2)
Controllers\HomeController.cs (2)
12private readonly ILogger<HomeController> _logger; 14public HomeController(ILogger<HomeController> logger)
Nats.Backend (1)
Program.cs (1)
20public class AppEventsBackendService(INatsConnection nats, ILogger<AppEventsBackendService> logger) : IHostedService
OrderProcessor (2)
OrderProcessingWorker.cs (2)
11private readonly ILogger<OrderProcessingWorker> _logger; 17public OrderProcessingWorker(ILogger<OrderProcessingWorker> logger, IConfiguration config, IServiceProvider serviceProvider)
Producer (2)
ContinuousProducerWorker.cs (1)
8internal sealed class ContinuousProducerWorker(IProducer<Null, string> producer, ILogger<ContinuousProducerWorker> logger) : BackgroundService
IntermittentProducerWorker.cs (1)
8internal sealed class IntermittentProducerWorker(IProducer<string, string> producer, ILogger<IntermittentProducerWorker> logger) : BackgroundService
Qdrant.ApiService (1)
Program.cs (1)
19app.MapGet("/create", async (QdrantClient client, ILogger<Program> logger) =>
RateLimitingSample (1)
SampleRateLimiterPolicy.cs (1)
13public SampleRateLimiterPolicy(ILogger<SampleRateLimiterPolicy> logger)
RazorPagesWebSite (2)
Pages\CustomModelTypeModel.cshtml.cs (2)
58private readonly ILogger<CustomModelTypeModel<TUser>> _logger; 60public CustomModelTypeModel(ILogger<CustomModelTypeModel<TUser>> logger)
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
109public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger<Startup> logger)
SignalRWeb (2)
Pages\Index.cshtml.cs (2)
7private readonly ILogger<IndexModel> _logger; 9public IndexModel(ILogger<IndexModel> logger)
SocialWeather (2)
SocialWeatherConnectionHandler.cs (2)
13private readonly ILogger<SocialWeatherConnectionHandler> _logger; 16FormatterResolver formatterResolver, ILogger<SocialWeatherConnectionHandler> logger)
Stress.ApiService (2)
Program.cs (2)
101app.MapGet("/log-message-limit", async ([FromServices] ILogger<Program> logger) => 119app.MapGet("/log-message", ([FromServices] ILogger<Program> logger) =>
Stress.TelemetryService (3)
GaugeMetrics.cs (1)
9public class GaugeMetrics(ILogger<GaugeMetrics> logger, IMeterFactory meterFactory) : BackgroundService
TelemetryStresser.cs (2)
15public class TelemetryStresser(ILogger<TelemetryStresser> logger, IConfiguration config) : BackgroundService 35private static async Task ExportMetrics(ILogger<TelemetryStresser> logger, MetricsService.MetricsServiceClient client, int value, CancellationToken cancellationToken)
TestProject.WorkerA (2)
Worker.cs (2)
8private readonly ILogger<Worker> _logger; 10public Worker(ILogger<Worker> logger)
WebPubSubWeb (2)
Pages\Index.cshtml.cs (2)
7private readonly ILogger<IndexModel> _logger; 9public IndexModel(ILogger<IndexModel> logger)