20 references to None
HttpLogging.Sample (1)
SampleHttpLoggingInterceptor.cs (1)
15logContext.LoggingFields = HttpLoggingFields.None;
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingRedactionInterceptor.cs (1)
72logContext.LoggingFields = HttpLoggingFields.None;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
965o.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; 759context.LoggingFields = HttpLoggingFields.None; 773options.CurrentValue.LoggingFields = HttpLoggingFields.None; 1749context.LoggingFields = HttpLoggingFields.None; 1773options.CurrentValue.LoggingFields = HttpLoggingFields.None; 1873var app = CreateApp(defaultFields: HttpLoggingFields.None); 1920var app = CreateApp(HttpLoggingFields.None, new FakeInterceptor(requestContext => 1963var app = CreateApp(defaultFields: HttpLoggingFields.None); 2010var app = CreateApp(HttpLoggingFields.None, new FakeInterceptor(requestContext =>