aspnetcore/test/WebSites
Ryan Nowak f5e7a69693 Updates to the extensibility for validator providers
This change removes reflection from validator providers, and instead
relies on cached metadata in in the modelmetadata.

In general this means that our MVPs don't need to cache anything, they
just look at the metadata and create what they need.

In the case of data-annotations, we update the model details provider to
add validation attributes to the modelmetadata. This would allow someone
to replace the DataAnnotationsValidatorProvider, but still use the
metadata in these attributes.

The change to the IModelValidatorProvider api (to use a context) is
intended to minimize allocations. Currently each validator provider needs
to return a list so you end up with N+1 lists (N validators + a final list
to compine them all). This change will let us just create the final list
(and a small context object). This is a very very high traffic API so it
seemed worth doing.

There's also some general massaging of namespaces and file locations.
2015-03-20 15:19:25 -07:00
..
ActionConstraintsWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ActionResultsWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ActivatorWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
AddServicesWebSite Update .kproj => .xproj. 2015-03-11 14:01:43 -07:00
AntiForgeryWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ApiExplorerWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ApplicationModelWebSite Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
AutofacWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
BasicWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
BestEffortLinkGenerationWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
CompositeViewEngineWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ContentNegotiationWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ControllerDiscoveryConventionsWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ControllersFromServicesClassLibrary Update .kproj => .xproj. 2015-03-11 14:01:43 -07:00
ControllersFromServicesWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
CorsMiddlewareWebSite Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
CorsWebSite Fix tests to work on CoreClr (this does not fix the Xml tests failures) 2015-03-19 11:52:29 -07:00
CustomRouteWebSite React to #154 (Routing - adding data token to GetVirtualPath) 2015-03-19 21:51:14 -07:00
ErrorPageMiddlewareWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
FilesWebSite Fix tests to work on CoreClr (this does not fix the Xml tests failures) 2015-03-19 11:52:29 -07:00
FiltersWebSite Avoid exceptions in `ActionFilterController` 2015-03-20 13:02:42 -07:00
FormatFilterWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
FormatterWebSite Fix for #1694 issue : Removed prefix for ModelState keys for FromBody parameters 2015-03-20 10:41:06 -07:00
InlineConstraintsWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
LoggingWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
LowercaseUrlsWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
Microsoft.AspNet.Mvc.TestConfiguration Update .kproj => .xproj. 2015-03-11 14:01:43 -07:00
ModelBindingWebSite Updates to the extensibility for validator providers 2015-03-20 15:19:25 -07:00
MvcTagHelpersWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
PrecompilationWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
RazorCompilerCacheWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
RazorEmbeddedViewsWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
RazorPageExecutionInstrumentationWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
RazorWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
RequestServicesWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ResponseCacheWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
RoutingWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
TagHelpersWebSite Refactor of ViewComponent extensibility 2015-03-20 13:39:54 -07:00
TempDataWebSite [Fixes #2157] Added additional functional tests for TempData 2015-03-19 15:55:23 -07:00
UrlHelperWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
UserClassLibrary Correct .xproj files that were recently added .kproj files 2015-03-11 22:55:59 -07:00
ValidationWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ValueProvidersWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
VersioningWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
ViewComponentWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
WebApiCompatShimWebSite React to hosting changes 2015-03-19 11:07:25 -07:00
XmlFormattersWebSite React to hosting changes 2015-03-19 11:07:25 -07:00