3 writes to RequestBodyLogLimit
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingEndpointConventionBuilderExtensions.cs (1)
31metadata.RequestBodyLogLimit = requestBodyLogLimit.Value;
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingAttributeTests.cs (1)
11var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) { RequestBodyLogLimit = -1 });
HttpLoggingMiddlewareTests.cs (1)
2068endpoint.MapGet("/attr_restrictedsize", [HttpLogging(HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody, RequestBodyLogLimit = 3, ResponseBodyLogLimit = 6)] async (HttpContext c) =>
10 references to RequestBodyLogLimit
Microsoft.AspNetCore.HttpLogging (7)
HttpLoggingAttribute.cs (5)
30/// Indicates whether <see cref="RequestBodyLogLimit"/> has been set. 37/// <exception cref="ArgumentOutOfRangeException">Thrown when <see cref="RequestBodyLogLimit"/> set to a value less than <c>0</c>.</exception> 38/// <exception cref="InvalidOperationException">Thrown when getting <see cref="RequestBodyLogLimit"/> if it hasn't been set to a value. Check <see cref="IsRequestBodyLogLimitSet"/> first.</exception> 48throw new InvalidOperationException($"{nameof(RequestBodyLogLimit)} was not set. Check {nameof(IsRequestBodyLogLimitSet)} before accessing this property."); 52ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(RequestBodyLogLimit));
HttpLoggingInterceptorContext.cs (1)
54/// <see cref="HttpLoggingAttribute.RequestBodyLogLimit"/>, or
HttpLoggingMiddleware.cs (1)
86logContext.RequestBodyLogLimit = loggingAttribute.RequestBodyLogLimit;
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingAttributeTests.cs (2)
12Assert.Equal(nameof(HttpLoggingAttribute.RequestBodyLogLimit), ex.ParamName); 23Assert.Throws<InvalidOperationException>(() => attribute.RequestBodyLogLimit);
HttpLoggingEndpointConventionBuilderTests.cs (1)
32Assert.Equal(requestBodyLogLimit, metadata.RequestBodyLogLimit);