3 writes to RequestBodyLogLimit
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingEndpointConventionBuilderExtensions.cs (1)
31
metadata.
RequestBodyLogLimit
= requestBodyLogLimit.Value;
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingAttributeTests.cs (1)
11
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) {
RequestBodyLogLimit
= -1 });
HttpLoggingMiddlewareTests.cs (1)
2068
endpoint.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>
48
throw new InvalidOperationException($"{nameof(
RequestBodyLogLimit
)} was not set. Check {nameof(IsRequestBodyLogLimitSet)} before accessing this property.");
52
ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(
RequestBodyLogLimit
));
HttpLoggingInterceptorContext.cs (1)
54
/// <see cref="HttpLoggingAttribute.
RequestBodyLogLimit
"/>, or
HttpLoggingMiddleware.cs (1)
86
logContext.RequestBodyLogLimit = loggingAttribute.
RequestBodyLogLimit
;
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingAttributeTests.cs (2)
12
Assert.Equal(nameof(HttpLoggingAttribute.
RequestBodyLogLimit
), ex.ParamName);
23
Assert.Throws<InvalidOperationException>(() => attribute.
RequestBodyLogLimit
);
HttpLoggingEndpointConventionBuilderTests.cs (1)
32
Assert.Equal(requestBodyLogLimit, metadata.
RequestBodyLogLimit
);