18 writes to MaxAllowedErrors
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
60MaxAllowedErrors = maxAllowedErrors;
Microsoft.AspNetCore.Mvc.Abstractions.Test (7)
ModelBinding\ModelStateDictionaryTest.cs (7)
754MaxAllowedErrors = 5 784MaxAllowedErrors = 3 813MaxAllowedErrors = 3 857MaxAllowedErrors = 4 887MaxAllowedErrors = 3 915MaxAllowedErrors = 3 943MaxAllowedErrors = 3
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\ControllerActionInvokerProvider.cs (1)
71controllerContext.ModelState.MaxAllowedErrors = _maxModelValidationErrors;
Routing\ControllerRequestDelegateFactory.cs (1)
88controllerContext.ModelState.MaxAllowedErrors = _maxModelValidationErrors;
Microsoft.AspNetCore.Mvc.Core.Test (7)
Filters\MiddlewareFilterTest.cs (1)
434controllerContext.ModelState.MaxAllowedErrors = maxAllowedErrorsInModelState;
Formatters\JsonInputFormatterTestBase.cs (1)
424formatterContext.ModelState.MaxAllowedErrors = 3;
Infrastructure\ControllerActionInvokerTest.cs (1)
1415controllerContext.ModelState.MaxAllowedErrors = 200;
ModelBinding\Validation\DefaultObjectValidatorTests.cs (4)
86modelState.MaxAllowedErrors = 1; 728modelState.MaxAllowedErrors = 2; 1226modelState.MaxAllowedErrors = 2; 1310actionContext.ModelState.MaxAllowedErrors = 2;
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
424formatterContext.ModelState.MaxAllowedErrors = 3;
9 references to MaxAllowedErrors
Microsoft.AspNetCore.Mvc.Abstractions (9)
ModelBinding\ModelStateDictionary.cs (9)
26/// The default value for <see cref="MaxAllowedErrors"/> of <c>200</c>. 76: this(dictionary?.MaxAllowedErrors ?? DefaultMaxAllowedErrors, 128public bool HasReachedMaxErrors => ErrorCount >= MaxAllowedErrors; 205/// See <see cref="MaxAllowedErrors"/>. 219if (ErrorCount >= MaxAllowedErrors - 1) 260/// See <see cref="MaxAllowedErrors"/>. 268if (ErrorCount >= MaxAllowedErrors - 1) 342/// See <see cref="MaxAllowedErrors"/>. 349if (ErrorCount >= MaxAllowedErrors - 1)