Tags: gaojianzhuang/aspnetwebstack
Tags
Update Microsoft.AspNet.Facebook version. - Due to the CannotCreateCookies hook feature the version is upping to 1.1.0.
Add `ModelMetadata.HtmlEncode` property - use new `ModelMetadata.HtmlEncode` property in HTML helpers - conditionally in default HTML display and editor object templates (e.g. `@Html.DisplayFor()`) when value is non-null and the template is invoked with template depth greater than 1 - unconditionally in `@Html.DisplayText()` and `@Html.DisplayTextFor()` - test new property and its use Also test `DisplayTextExtensions` - unit test gap
Adding support for custom discovery of IRouteFactory The new IDirectRouteProvider api supports discovering IRouteFactory on controller descriptors and action descriptors with arbitrary criteria. DefaultDirectRouteProvider is given as a base class for customizing a single aspect of the process. Since criteria for whether or not an action/controller is attribute routed is now arbitrary, I've added a marker to the descriptors. This required some refactoring of the action selector, now caching proceeds in two phases. 1. Existance of actions and descriptors are cached 2. Details used for action selection are cached. 2) will happen when requests come in, so attribute routing is allowed to mark the descriptors before they are cached.
Fix CodePlex bug: https://aspnetwebstack.codeplex.com/workitem/1658 Url.Action overloads (and similar) ignore inherited properties. This fix affects both WebAPI HttpRouteValueDictionary, Overloads that take anonymous objects to construct a routevaluedictionary and overload that takes anonymous objects to create HtmlAttributes. The fix reverts the behavior to MVC5/WebAPI2/WebPages3 behavior where it will allow for derived properties to show up. But it maintains the performance characteristics of MVC5.1/WevAPI2.1/WebPages3.1. (cherry picked from commit 1e6b50c)
PreviousNext