195 references to AddLogging
BasicWebSite (2)
StartupWithCustomInvalidModelStateFactory.cs (1)
35services.AddLogging();
StartupWithoutEndpointRouting.cs (1)
42services.AddLogging();
GenericHostWebSite (1)
Startup.cs (1)
23services.AddLogging();
InMemory.FunctionalTests (2)
HttpsConnectionMiddlewareTests.cs (1)
41.AddLogging()
HttpsTests.cs (1)
39.AddLogging()
Microsoft.AspNetCore.Authentication.Test (9)
AuthenticationMiddlewareTests.cs (1)
211serviceCollection.AddLogging();
JwtBearerTests_Handler.cs (1)
995var services = new ServiceCollection().AddLogging();
OpenIdConnect\OpenIdConnectTests.cs (5)
424var services = new ServiceCollection().AddLogging(); 457var services = new ServiceCollection().AddLogging(); 494var services = new ServiceCollection().AddLogging(); 517var services = new ServiceCollection().AddLogging(); 544var services = new ServiceCollection().AddLogging();
PolicyTests.cs (1)
22services.AddLogging().AddAuthentication(o =>
TestExtensions.cs (1)
83.AddLogging();
Microsoft.AspNetCore.Authorization.Test (7)
AuthorizationAppBuilderExtensionsTests.cs (1)
70services.AddLogging();
AuthorizationBuilderTests.cs (1)
112services.AddLogging();
AuthorizationMiddlewareTests.cs (2)
294.AddLogging() 1040serviceCollection.AddLogging();
DefaultAuthorizationServiceTests.cs (1)
18services.AddLogging();
PassThroughAuthorizationHandlerTests.cs (1)
16services.AddLogging();
PolicyEvaluatorTests.cs (1)
163.AddLogging()
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
41services.AddLogging();
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
HotReloadServiceTests.cs (1)
224services.AddLogging();
RazorComponentEndpointDataSourceTest.cs (1)
227services.AddLogging();
RazorComponentResultTest.cs (1)
469.AddLogging();
Microsoft.AspNetCore.Components.Performance (1)
RouteTableFactoryBenchmarks.cs (1)
19.AddLogging()
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
132services.AddLogging();
Microsoft.AspNetCore.Components.Tests (2)
Routing\RouteTableFactoryTests.cs (2)
19.AddLogging() 1125.AddLogging()
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\EditFormTest.cs (1)
22services.AddLogging();
Forms\InputNumberTest.cs (1)
19services.AddLogging();
HtmlRendering\HtmlRendererTest.cs (1)
1376services.AddLogging();
Microsoft.AspNetCore.Components.WebView (1)
ComponentsWebViewServiceCollectionExtensions.cs (1)
25services.AddLogging();
Microsoft.AspNetCore.DataProtection.Tests (2)
ServiceCollectionTests.cs (2)
33.AddLogging() 41.AddLogging()
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\LoggingOptionsValidationTests.cs (3)
23.AddLogging() 39.AddLogging() 55.AddLogging()
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
GrpcSwaggerServiceExtensionsTests.cs (2)
29services.AddLogging(); 65services.AddLogging();
Infrastructure\OpenApiTestHelpers.cs (1)
29services.AddLogging();
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
295services.AddLogging();
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
1837services.AddLogging(); 1889services.AddLogging(); 1943services.AddLogging();
Microsoft.AspNetCore.Http.Results.Tests (5)
AcceptedAtRouteOfTResultTests.cs (1)
222services.AddLogging();
AcceptedAtRouteResultTests.cs (1)
132services.AddLogging();
AcceptedOfTResultTests.cs (1)
146services.AddLogging();
AcceptedResultTests.cs (1)
89services.AddLogging();
PushStreamResultTests.cs (1)
19RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider()
Microsoft.AspNetCore.Http.Tests (1)
ResponseCookiesTest.cs (1)
33services.AddLogging();
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingServicesExtensionsTests.cs (1)
54services.AddLogging();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (17)
CustomSchemaTest.cs (1)
21.AddLogging()
DefaultPocoTest.cs (1)
30services.AddLogging();
EmptySchemaTest.cs (1)
21.AddLogging()
MaxKeyLengthSchemaTest.cs (1)
30services.AddLogging();
SqlStoreTestBase.cs (1)
52services.AddLogging();
UserOnlyCustomContextTest.cs (1)
74services.AddLogging();
UserOnlyTest.cs (1)
35services.AddLogging();
UserStoreEncryptPersonalDataTest.cs (2)
182var services = new ServiceCollection().AddLogging(); 279var services = new ServiceCollection().AddLogging();
UserStoreGuidKeyTest.cs (2)
58services.AddLogging() 75services.AddLogging()
UserStoreIntKeyTest.cs (2)
36services.AddLogging() 53services.AddLogging()
UserStoreStringKeyTest.cs (2)
37services.AddLogging() 54services.AddLogging()
VersionOneSchemaTest.cs (1)
32services.AddLogging();
VersionTwoSchemaTest.cs (1)
33services.AddLogging();
Microsoft.AspNetCore.Identity.InMemory.Test (2)
ControllerTest.cs (2)
33.AddLogging() 85.AddLogging()
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
54services.AddLogging();
UserManagerSpecificationTests.cs (1)
66services.AddLogging();
Microsoft.AspNetCore.Identity.Test (13)
IdentityBuilderTest.cs (6)
77.AddLogging() 92.AddLogging() 164.AddLogging(); 180services.AddLogging() 204services.AddLogging() 223services.AddLogging()
UserManagerTest.cs (7)
23services.AddLogging(); 38services.AddLogging(); 794.AddLogging(); 808.AddLogging(); 819.AddLogging(); 891.AddLogging(); 1747.AddLogging()
Microsoft.AspNetCore.Mvc.Core.Test (10)
Authorization\AuthorizeFilterTest.cs (1)
603serviceCollection.AddLogging();
Builder\MvcApplicationBuilderExtensionsTest.cs (2)
40services.AddLogging(); 65services.AddLogging();
Routing\AttributeRouteTest.cs (2)
768.AddLogging() 810.AddLogging()
Routing\AttributeRoutingTest.cs (1)
178services.AddLogging();
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
216services.AddLogging();
Routing\PageLinkGeneratorExtensionsTest.cs (1)
186services.AddLogging();
Routing\UrlHelperBaseTest.cs (1)
106services.AddLogging();
Routing\UrlHelperTestBase.cs (1)
1162services.AddLogging();
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
HasValidatorsValidationMetadataProviderIntegrationTest.cs (2)
20serviceCollection.AddLogging(); 35serviceCollection.AddLogging();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
NewtonsoftJsonOutputFormatterTest.cs (3)
445actionContext.HttpContext.RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider(); 490actionContext.HttpContext.RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider(); 524actionContext.HttpContext.RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
221collection.AddLogging();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
ComponentTagHelperTest.cs (1)
90.AddLogging()
PersistComponentStateTagHelperTest.cs (1)
262.AddLogging()
Microsoft.AspNetCore.Mvc.Test (5)
MvcServiceCollectionExtensionsTest.cs (5)
167services.AddLogging(); 184services.AddLogging(); 203services.AddLogging(); 220services.AddLogging(); 407services.AddLogging();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
294collection.AddLogging();
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingApplicationBuilderExtensionsTests.cs (2)
53services.AddLogging(); 70services.AddLogging();
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
ResponseCompressionProviderBenchmark.cs (1)
20.AddLogging()
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
30services.AddLogging();
Microsoft.AspNetCore.Routing.Tests (16)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
359services.AddLogging();
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (3)
638httpContext.RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider(); 821httpContext.RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider(); 848httpContext.RequestServices = new ServiceCollection().AddLogging().BuildServiceProvider();
Builder\RoutingBuilderExtensionsTest.cs (1)
126services.AddLogging();
EndpointRoutingMiddlewareTest.cs (1)
404services.AddLogging();
Internal\DfaGraphWriterTest.cs (1)
15services.AddLogging();
LinkGeneratorTestBase.cs (1)
26services.AddLogging();
LinkParserTestBase.cs (1)
18services.AddLogging();
Matching\DfaMatcherConformanceTest.cs (1)
65.AddLogging()
Matching\DfaMatcherTest.cs (1)
30.AddLogging()
Matching\HostMatcherPolicyIntegrationTestBase.cs (1)
371.AddLogging()
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (1)
350.AddLogging()
Matching\MatcherConformanceTest.cs (1)
27services.AddLogging();
RequestDelegateRouteBuilderExtensionsTest.cs (1)
128services.AddLogging();
RouterMiddlewareTest.cs (1)
21services.AddLogging();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (1)
294services.AddLogging();
KestrelServerTests.cs (1)
41.AddLogging()
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
28.AddLogging()
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnectionBuilder.cs (1)
31Services.AddLogging();
Microsoft.AspNetCore.SignalR.Client.Tests (4)
TestServerTests.cs (4)
24s.AddLogging(); 53connectionBuilder.Services.AddLogging(); 76s.AddLogging(); 98connectionBuilder.Services.AddLogging();
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTestUtils\Utils.cs (1)
60.AddLogging();
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
59services.AddLogging();
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
CacheServiceExtensionsTests.cs (2)
84services.AddLogging(); 110services.AddLogging();
Microsoft.Extensions.Compliance.Redaction.Tests (3)
RedactionAcceptanceTests.cs (3)
21.AddLogging() 44.AddLogging() 64.AddLogging()
Microsoft.Extensions.Compliance.Testing.Tests (10)
RedactionFakesAcceptanceTests.cs (10)
21.AddLogging() 40.AddLogging() 60.AddLogging() 79.AddLogging() 99.AddLogging() 118.AddLogging() 138.AddLogging() 158.AddLogging() 178.AddLogging() 200.AddLogging()
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (3)
TelemetryHealthChecksPublisherExtensionsTests.cs (3)
20.AddLogging() 37.AddLogging() 57.AddLogging()
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
DefaultHealthCheckServiceTest.cs (2)
31serviceCollection.AddLogging(); 629services.AddLogging();
DependencyInjection\HealthChecksBuilderTest.cs (1)
226services.AddLogging();
HealthCheckPublisherHostedServiceTest.cs (1)
744serviceCollection.AddLogging();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Linux\AcceptanceTest.cs (2)
228x.AddLogging() 311x.AddLogging()
ResourceMonitoringBuilderTests.cs (2)
17.AddLogging() 38.AddLogging()
ResourceMonitoringExtensionsTests.cs (3)
35.AddLogging() 55.AddLogging() 71.AddLogging()
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
329services.AddLogging();
Microsoft.Extensions.Http (1)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (1)
30services.AddLogging();
Microsoft.Extensions.Http.Resilience.Tests (10)
Hedging\HedgingTests.cs (1)
47_services = new ServiceCollection().AddMetrics().AddLogging();
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (3)
203var services = new ServiceCollection().AddLogging().AddMetrics().AddFakeRedaction(); 247var services = new ServiceCollection().AddLogging().AddMetrics(); 278var clientBuilder = new ServiceCollection().AddLogging().AddMetrics().AddRedaction()
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (6)
33_builder.Services.AddLogging(); 146var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 157.AddLogging() 182var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 211var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 264var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test").AddStandardResilienceHandler();
Microsoft.Extensions.Identity.Core (1)
IdentityServiceCollectionExtensions.cs (1)
37services.AddOptions().AddLogging();
Microsoft.Extensions.ML (1)
ServiceCollectionExtensions.cs (1)
81.AddLogging()
Microsoft.Extensions.ML.Tests (7)
FileLoaderTests.cs (3)
31.AddLogging(); 44.AddLogging(); 63.AddLogging();
PredictionEnginePoolTests.cs (1)
31.AddLogging();
UriLoaderTests.cs (3)
31.AddLogging(); 44.AddLogging(); 63.AddLogging();
Microsoft.Extensions.Resilience.PerformanceTests (2)
ResilienceEnrichmentBenchmark.cs (2)
41services.AddLogging(); 44services.AddLogging();
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryServiceCollectionExtensions.cs (1)
62services.AddLogging();
RateLimitingSample (1)
Program.cs (1)
17builder.Services.AddLogging();
Wasm.Performance.ConsoleHost (1)
Scenarios\ComponentRenderingScenarioBase.cs (1)
46serviceCollection.AddLogging();