Yishai Galatzer
6aa1f84420
Add Service monitoring as middleware to make sure the monitoring doesn't affect autofac services counts
...
Scoping of three services
Caching of action binding context.
Make input formatters lazy
2014-06-16 19:03:30 -07:00
Tian Pan
e27742fd0b
IsValidActionMethod fails to check static methods.
...
Fix #638
2014-06-16 18:04:09 -07:00
Pranav K
fdbac041f9
Updating designer files by re-running build resx
2014-06-16 16:27:30 -07:00
Pranav K
85bd056780
CreateActionResult should work when action returns Task.
...
Fixes #647
2014-06-16 16:13:18 -07:00
Ryan Nowak
d79943d30f
Fixing issues build/project issues that someone else missed.
2014-06-16 13:26:49 -07:00
harshgMSFT
170283c724
Fixing StyleCop Issues for issues reported for commit# b58083f73a
2014-06-16 13:16:37 -07:00
Ryan Nowak
1bae3bcaa2
Issue #592 - ActionResult is not being executed by ResultFilterAttribute
...
The issue here is actually different than described in the bug.
ResultFilter should only short circuit when .Cancel is set to true. This
is consistent with legacy MVC.
Added tests for all of this stuff. There's already good test coverage for
the invoker, what was missing was coverage for the attributes and for the
methods on Controller. ExceptionFilterAttribute and
AuthorizationFilterAttribute don't have short circuiting logic inside of
them, so they are already covered by tests for the invoker.
2014-06-16 12:42:59 -07:00
harshgMSFT
10285d7d39
This additional constraint enables adding a route to the template (and potentially to the UseMvc method) without actually implementing the actual artifact.
...
For example without adding an area to a controller, a route can still be added to the template.
- Also added functional tests.
2014-06-16 11:24:22 -07:00
harshgMSFT
b58083f73a
Renaming AntiForgeryConfig-> AntiForgeryOptions.
...
Adding MvcOptions and updating AntiForgery system to use AntiForgeryConfiguration from MvcOptions
2014-06-12 16:55:49 -07:00
Ryan Nowak
7f34c94de7
Adding a context class for ValueProviderFactories
...
This allows model binding to once again be independent of routing. Sending
RouteContext into model binding was an odd choice from a layering
point-of-view.
2014-06-11 18:03:09 -07:00
Ryan Nowak
44ed23f65e
Fix a build break in k10
2014-06-11 12:49:15 -07:00
Tian Pan
31915f0b46
Remove ComponentResultHelper
...
Fix #598
2014-06-11 11:32:22 -07:00
Tian Pan
e95585dfbd
Remove ActionResultHelper
...
Fix #597
2014-06-11 11:17:45 -07:00
Tian Pan
60443101d5
Enable request to reach base controller class's action
...
Fix #378
2014-06-11 10:57:19 -07:00
Pranav K
8ce8447c08
Updating build.sh based on KRuntime changes
2014-06-10 17:23:50 -07:00
sornaks
28516a0ae9
Changes to support DisplayColumn attribute. Updating the MvcSample as well to start using DisplayColumn attribute. Adding UnitTests for the same.
2014-06-10 16:45:55 -07:00
Pranav K
7396f58d99
Support ModelMetaData.IsRequired
...
* Update DataAnnotationsModelValidatorProvider to use ModelMetadata.IsRequired
* Adding tests and updating existing ones that didn't work with IsRequired
Fixes #533
2014-06-10 10:20:24 -07:00
Yishai Galatzer
95aa6ad607
Add AutoFac to the MVC sample
2014-06-09 15:00:40 -07:00
Pranav K
0123b38840
Adding missing files to kproj
2014-06-09 14:55:50 -07:00
Pranav K
cc0dadc6b6
More Stylecop cleanup for ModelBinding and Razor
2014-06-09 14:27:12 -07:00
Pranav K
59e419ba0a
Adding support for @Inject to Mvc
2014-06-09 13:43:08 -07:00
Javier Calvarro Nelson
c98bc503e8
Check for result.Body.Length = 0 instead of checking that the body is the empty string
2014-06-09 13:35:42 -07:00
Javier Calvarro Nelson
2523d5d9ea
Addressed feedback from @rynowak
2014-06-09 13:35:39 -07:00
Javier Calvarro Nelson
5ba74f500c
Incorporated code review feedback
2014-06-09 13:35:35 -07:00
Javier Calvarro Nelson
16f19b5cc6
Added functional tests to cover rendering views without layout and
...
to return a result without content.
2014-06-09 13:35:31 -07:00
dougbu
84396ad875
Clean up trailing whitespace in Core project
...
- checked and found no tabs in this project 😄
2014-06-09 11:56:52 -07:00
Pranav K
822d84a2b4
Use default values when binding action arguments
...
Fixes #545
2014-06-09 11:44:26 -07:00
Ryan Nowak
1b7d52c84c
fixing stylecop in .Mvc and .Mvc.Common
2014-06-09 10:12:11 -07:00
harshgMSFT
dd3dafddb8
Mvc Changes corresponding to Routing DI changes. Refer pr#63
2014-06-06 17:22:06 -07:00
Yishai Galatzer
6d78f8adb3
Cache action descriptor providers and provide a race safe data structure to get the version.
...
The default implementation has a safe race, and does not allow for action description addition at runtime.
It can be replaced with an implementation that can reload.
Consumers of the new service that do extra caching are now responsible to look at the version and change the implementation.
2014-06-06 15:19:30 -07:00
Ryan Nowak
31d3180635
setting line length to 120 to match our guidelines
2014-06-06 11:09:10 -07:00
Ryan Nowak
bd08a2ca62
fix a build break due to api change
2014-06-06 11:06:41 -07:00
Ryan Nowak
a3314a4805
changing to use list instead of stack
2014-06-06 10:49:58 -07:00
Ryan Nowak
69034b78b8
Issue #65 merge RoutingContext and RequestContext
...
See the relevant PR in aspnet/Routing#60 .
This incorporates the breaking changes.
2014-06-06 10:49:55 -07:00
sornaks
6b836e9e77
Introducing ChallengeResult to call Response.Challenge()
2014-06-06 10:31:18 -07:00
Ryan Nowak
b29ecea4b5
activate line length rule
2014-06-05 14:26:30 -07:00
Ryan Nowak
cf0304b897
Fixing style issues in Mvc.Core
2014-06-04 20:40:23 -07:00
Ryan Nowak
ecbc179d76
Fix stylecop in Microsoft.AspNet.Mvc
2014-06-04 20:06:42 -07:00
Pranav K
97e06138ed
Cleaning up StyleCop errors
2014-06-04 13:28:30 -07:00
harshgMSFT
b96da245cb
RouteCollection -> RouteBuilder changes for MVC.
2014-06-03 16:43:54 -07:00
sornaks
dffc58dedc
Issue #242 - Introducing ObjectContentResult
2014-06-03 16:00:36 -07:00
Pranav K
0467fd906b
Merge branch 'ViewResultTest' into dev
2014-06-03 13:58:07 -07:00
Pranav K
06362db5dc
Adding unit test for ViewResult
2014-06-03 13:53:51 -07:00
harshgMSFT
483e9038b4
Supporting Urls With ~/ while redirecting.
...
Fix for Issue#304
2014-06-03 11:29:27 -07:00
Pranav K
2ad5847132
Adding switch to build.cmd to skip KRE install
2014-06-03 10:16:12 -07:00
Tian Pan
a6d89c4482
Copy CodePlex #1836 and #1878 fixes over ( Fix #296 ).
...
This change enables user to specify the tag for the wrapping HTML element
generated from ValidationSummary() and ValidationMessage[For]().
Clean up HtmlHelperValidationExtensions.
2014-06-03 00:18:47 -07:00
Tian Pan
6082cd9f36
View components - More built in return methods ( Fix #354 )
...
Modify Content/Json/View return type as strongly-typed.
2014-06-02 23:12:42 -07:00
Ryan Nowak
cfe078059b
updating the file header text and rule name
2014-06-02 15:10:45 -07:00
Pranav K
eddd403617
Adding unit test for ViewResult
2014-06-02 15:07:42 -07:00
Pranav K
a5a9c03d0a
Fixing file name in kproj
2014-06-02 15:02:14 -07:00