3 writes to ResponseBodyLogLimit
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingEndpointConventionBuilderExtensions.cs (1)
36metadata.ResponseBodyLogLimit = responseBodyLogLimit.Value;
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingAttributeTests.cs (1)
14ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) { ResponseBodyLogLimit = -1 });
HttpLoggingMiddlewareTests.cs (1)
2068endpoint.MapGet("/attr_restrictedsize", [HttpLogging(HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody, RequestBodyLogLimit = 3, ResponseBodyLogLimit = 6)] async (HttpContext c) =>
10 references to ResponseBodyLogLimit
Microsoft.AspNetCore.HttpLogging (7)
HttpLoggingAttribute.cs (5)
59/// Indicates whether <see cref="ResponseBodyLogLimit"/> has been set. 66/// <exception cref="ArgumentOutOfRangeException">Thrown when <see cref="ResponseBodyLogLimit"/> set to a value less than <c>0</c>.</exception> 67/// <exception cref="InvalidOperationException">Thrown when getting <see cref="ResponseBodyLogLimit"/> if it hasn't been set to a value. Check <see cref="IsResponseBodyLogLimitSet"/> first.</exception> 76throw new InvalidOperationException($"{nameof(ResponseBodyLogLimit)} was not set. Check {nameof(IsResponseBodyLogLimitSet)} before accessing this property."); 80ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(ResponseBodyLogLimit));
HttpLoggingInterceptorContext.cs (1)
64/// <see cref="HttpLoggingAttribute.ResponseBodyLogLimit"/>, or
HttpLoggingMiddleware.cs (1)
90logContext.ResponseBodyLogLimit = loggingAttribute.ResponseBodyLogLimit;
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingAttributeTests.cs (2)
15Assert.Equal(nameof(HttpLoggingAttribute.ResponseBodyLogLimit), ex.ParamName); 24Assert.Throws<InvalidOperationException>(() => attribute.ResponseBodyLogLimit);
HttpLoggingEndpointConventionBuilderTests.cs (1)
33Assert.Equal(responseBodyLogLimit, metadata.ResponseBodyLogLimit);