7 writes to ValueCountLimit
Microsoft.AspNetCore.Http (1)
Internal\MutableFormOptionsMetadata.cs (1)
14ValueCountLimit = ValueCountLimit ?? baseFormOptions.ValueCountLimit,
Microsoft.AspNetCore.Http.Tests (5)
Features\FormFeatureTests.cs (5)
35ValueCountLimit = 1 465IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 489IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 513IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 537IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 });
Microsoft.AspNetCore.Mvc.Core (1)
RequestFormLimitsAttribute.cs (1)
86set => FormOptions.ValueCountLimit = value;
9 references to ValueCountLimit
Microsoft.AspNetCore.Http (4)
Features\FormFeature.cs (3)
217ValueCountLimit = _options.ValueCountLimit, 239if (sectionCount > _options.ValueCountLimit) 241throw new InvalidDataException($"Form value count limit {_options.ValueCountLimit} exceeded.");
Internal\MutableFormOptionsMetadata.cs (1)
14ValueCountLimit = ValueCountLimit ?? baseFormOptions.ValueCountLimit,
Microsoft.AspNetCore.Mvc.Core (1)
RequestFormLimitsAttribute.cs (1)
85get => FormOptions.ValueCountLimit;
Microsoft.AspNetCore.Routing.Tests (4)
EndpointRoutingMiddlewareFormOptionsTest.cs (4)
50Assert.Equal(54, formOptions.ValueCountLimit); 84Assert.Equal(54, formOptions.ValueCountLimit); 122Assert.Equal(54, formOptions.ValueCountLimit); 158Assert.Equal(70, formOptions.ValueCountLimit);