11 writes to MaxStateDepth
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
62MaxStateDepth = maxStateDepth;
Microsoft.AspNetCore.Mvc.Abstractions.Test (8)
ModelBinding\ModelStateDictionaryTest.cs (8)
1610dictionary.MaxStateDepth = null; 1628dictionary.MaxStateDepth = null; 1649dictionary.MaxStateDepth = stateDepth; 1667dictionary.MaxStateDepth = stateDepth; 1684dictionary.MaxStateDepth = stateDepth; 1702source.MaxStateDepth = stateDepth; 1720source.MaxStateDepth = stateDepth; 1748dictionary.MaxStateDepth = 4;
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\ControllerActionInvokerProvider.cs (1)
73controllerContext.ModelState.MaxStateDepth = _maxModelBindingRecursionDepth;
Routing\ControllerRequestDelegateFactory.cs (1)
90controllerContext.ModelState.MaxStateDepth = _maxModelBindingRecursionDepth;
13 references to MaxStateDepth
Microsoft.AspNetCore.Mvc.Abstractions (4)
ModelBinding\ModelStateDictionary.cs (4)
78dictionary?.MaxStateDepth ?? DefaultMaxRecursionDepth) 567if (MaxStateDepth != null && currentDepth >= MaxStateDepth) 569throw new InvalidOperationException(Resources.FormatModelStateDictionary_MaxModelStateDepth(MaxStateDepth));
Microsoft.AspNetCore.Mvc.Abstractions.Test (8)
ModelBinding\ModelStateDictionaryTest.cs (8)
1656$"The specified key exceeded the maximum ModelState depth: {dictionary.MaxStateDepth}", 1674$"The specified key exceeded the maximum ModelState depth: {dictionary.MaxStateDepth}", 1691$"The specified key exceeded the maximum ModelState depth: {dictionary.MaxStateDepth}", 1709$"The specified key exceeded the maximum ModelState depth: {source.MaxStateDepth}", 1727$"The specified key exceeded the maximum ModelState depth: {source.MaxStateDepth}", 1739Assert.Equal(ModelStateDictionary.DefaultMaxRecursionDepth, dictionary.MaxStateDepth); 1755Assert.Equal(dictionary.MaxStateDepth, newDictionary.MaxStateDepth);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
40Assert.Equal(2, invoker.ControllerContext.ModelState.MaxStateDepth);