20 references to None
HttpLogging.Sample (1)
SampleHttpLoggingInterceptor.cs (1)
15logContext.LoggingFields = HttpLoggingFields.None;
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingRedactionInterceptor.cs (1)
70logContext.LoggingFields = HttpLoggingFields.None;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
726o.LoggingFields = HttpLoggingFields.None;
Microsoft.AspNetCore.HttpLogging (3)
HttpLoggingInterceptorContext.cs (2)
108return (LoggingFields & fields) != HttpLoggingFields.None; 139LoggingFields = HttpLoggingFields.None;
HttpLoggingMiddleware.cs (1)
61if (_interceptors.Length == 0 && loggingFields == HttpLoggingFields.None)
Microsoft.AspNetCore.HttpLogging.Tests (14)
HttpLoggingAttributeTests.cs (3)
11var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) { RequestBodyLogLimit = -1 }); 14ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) { ResponseBodyLogLimit = -1 }); 21var attribute = new HttpLoggingAttribute(HttpLoggingFields.None);
HttpLoggingEndpointConventionBuilderTests.cs (2)
45testConventionBuilder.WithHttpLogging(HttpLoggingFields.None, requestBodyLogLimit: -1)); 49testConventionBuilder.WithHttpLogging(HttpLoggingFields.None, responseBodyLogLimit: -1));
HttpLoggingMiddlewareTests.cs (9)
104options.CurrentValue.LoggingFields = HttpLoggingFields.None; 719context.LoggingFields = HttpLoggingFields.None; 733options.CurrentValue.LoggingFields = HttpLoggingFields.None; 1617context.LoggingFields = HttpLoggingFields.None; 1641options.CurrentValue.LoggingFields = HttpLoggingFields.None; 1741var app = CreateApp(defaultFields: HttpLoggingFields.None); 1788var app = CreateApp(HttpLoggingFields.None, new FakeInterceptor(requestContext => 1831var app = CreateApp(defaultFields: HttpLoggingFields.None); 1878var app = CreateApp(HttpLoggingFields.None, new FakeInterceptor(requestContext =>