This change to ModelBinderFactory makes the caching much more aggressive, by caching all non-root binders. There's some trickiness here around making sure we have the right behavior when all providers return null. See the tests and comments. I also kept the change I made for a temporary workaround to use a dictionary rather than a "stack" for cycle breaking. This seems like an overall improvement in clarity. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNetCore.Mvc.Abstractions.Test | ||
| Microsoft.AspNetCore.Mvc.ApiExplorer.Test | ||
| Microsoft.AspNetCore.Mvc.Core.Test | ||
| Microsoft.AspNetCore.Mvc.Cors.Test | ||
| Microsoft.AspNetCore.Mvc.DataAnnotations.Test | ||
| Microsoft.AspNetCore.Mvc.Formatters.Json.Test | ||
| Microsoft.AspNetCore.Mvc.Formatters.Xml.Test | ||
| Microsoft.AspNetCore.Mvc.FunctionalTests | ||
| Microsoft.AspNetCore.Mvc.IntegrationTests | ||
| Microsoft.AspNetCore.Mvc.Localization.Test | ||
| Microsoft.AspNetCore.Mvc.Razor.Host.Test | ||
| Microsoft.AspNetCore.Mvc.Razor.Test | ||
| Microsoft.AspNetCore.Mvc.TagHelpers.Test | ||
| Microsoft.AspNetCore.Mvc.Test | ||
| Microsoft.AspNetCore.Mvc.TestCommon | ||
| Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources | ||
| Microsoft.AspNetCore.Mvc.ViewFeatures.Test | ||
| Microsoft.AspNetCore.Mvc.WebApiCompatShimTest | ||
| WebSites | ||