Commit Graph

40929 Commits

Author SHA1 Message Date
Pranav K eece81d67f Updating build scripts to use dotnetsdk 2015-01-20 02:05:26 -08:00
Pranav K 8c3edc158f Reacting to KRuntime renames 2015-01-20 01:49:44 -08:00
Pranav K e041a3b133 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:37:17 -08:00
Pranav K b6595e9ba2 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:37:09 -08:00
Pranav K 60c3e7e971 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:37:01 -08:00
Pranav K 1f14d9aa50 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:43 -08:00
Pranav K ef7e044942 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:35 -08:00
Pranav K 26a193ca62 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:30 -08:00
Pranav K a2d12669a8 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:23 -08:00
Pranav K ac20982505 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:16 -08:00
Pranav K e97d78ec94 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:12 -08:00
Pranav K 382c3af065 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:08 -08:00
Pranav K a93537e3be Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:36:04 -08:00
Pranav K 32cf5e9ee4 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:35:44 -08:00
Pranav K 962b8f38f8 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:35:33 -08:00
Pranav K 87238557cc Correcting location of dotnetsdk.sh in build.sh 2015-01-20 01:34:44 -08:00
Pranav K e0b5c19082 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:32:36 -08:00
Pranav K 529670d9a3 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:32:32 -08:00
Pranav K 9d6915839f Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:32:19 -08:00
Pranav K 42dd52a2b2 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:31:59 -08:00
Pranav K 1826b23617 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:31:53 -08:00
Pranav K 236801ee6e Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:31:48 -08:00
Pranav K cb17819552 Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:31:43 -08:00
Pranav K d1fcdc529f Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:30:54 -08:00
Pranav K 1d49807eee Updating build.cmd and build.sh to use dotnetsdk 2015-01-20 01:30:29 -08:00
Pranav K c8a13087a6 Revert "Added SetAntiForgeryCookieAndHeader method that sets cookie token and header"
This reverts commit 951ed05893.
2015-01-20 00:49:15 -08:00
Pranav K 361f083117 Updating build scripts to use dotnetsdk instead of kvm 2015-01-20 00:29:57 -08:00
Kirthi Krishnamraju 951ed05893 Added SetAntiForgeryCookieAndHeader method that sets cookie token and header 2015-01-19 17:58:12 -08:00
Ajay Bhargav Baaskaran 67b078862e Fixed content-disposition quoted filename bug 2015-01-19 13:15:18 -08:00
David Fowler dceba03f4a Removed unused dependencies
#173
2015-01-19 01:43:09 -08:00
Stephen Halter d34554e3ff Handle HttpFeature rename 2015-01-18 21:06:12 -08:00
Stephen Halter cc720bd3fe Handle HttpFeature rename 2015-01-18 21:04:13 -08:00
Stephen Halter 48e8f92aab Handle HttpFeature rename 2015-01-18 21:01:48 -08:00
Stephen Halter 65adcffb92 Handle HttpFeature rename 2015-01-18 20:59:49 -08:00
Stephen Halter 1820edb326 Handle HttpFeature rename 2015-01-18 20:58:52 -08:00
Stephen Halter ac03ad3edf Handle HttpFeature rename 2015-01-18 20:55:49 -08:00
Praburaj 28bab08fd6 Changing the global.json sources => projects 2015-01-18 20:53:44 -08:00
Stephen Halter bf9d22bb89 Handle HttpFeature rename 2015-01-18 20:50:01 -08:00
Praburaj 7847fb8257 Increasing the retry count
To fix flakiness
2015-01-18 20:48:23 -08:00
Suhas Joshi 5d06b0d353 Switched logging from file to inmemory for tests 2015-01-18 17:01:15 -08:00
Hao Kung 123065c0ae Add some sugar for AuthZ
- Register passthrough handler by default
- AddPolicy overload that takesAction<AuthorizationPolicyBuilder>
- Chaining policy overloads/methods
- More fluent apis for PolicyBuilder
Fixes #122, #114
2015-01-17 17:11:34 -08:00
Ryan Nowak 0c5a702245 Changing when controllers are created
This change moves controller creation to the stage immediately before
model binding. The controller will be disposed/released before Resource
Filters run their 'OnResourceExecuted' method. Previously the controller's
lifetime surrounded all filter invocation.

Additionally, the Controller property is now gone from ActionContext, and
is moved to the 4 filter contexts that should have access to it
Action*Context and Result*Context.
2015-01-16 20:23:39 -08:00
Stephen Halter db484a7dcb Rename Microsoft.AspNet.HttpFeature to Microsoft.AspNet.Http.Interfaces 2015-01-16 19:46:04 -08:00
Ryan Nowak e1069dbf65 Fix for #384 - And some other changes to controller as filter
This is a major change to how we handle the scenario where a controller is
a filter. We want to change the lifetime of the controller object, by
scoping it around action filters and result filters. This means that a
controller class can only implement action filters and result filters.

To implement #384 - we're creating a delegating filter class
'ControllerFilter' which will forward calls to the implementation of the
controller. This is discovered in the controller model and added to the
filter collection. This filter is removable as an opt-out of this feature.

The ControllerFilter only implements action filter and result filter, so
the new restriction about filter types on Controller is in place. A future
change will move the instantiation of the controller to after resource
filters.
2015-01-16 19:17:39 -08:00
Ryan Nowak 12c2759cec Fix for #384 - And some other changes to controller as filter
This is a major change to how we handle the scenario where a controller is
a filter. We want to change the lifetime of the controller object, by
scoping it around action filters and result filters. This means that a
controller class can only implement action filters and result filters.

To implement #384 - we're creating a delegating filter class
'ControllerFilter' which will forward calls to the implementation of the
controller. This is discovered in the controller model and added to the
filter collection. This filter is removable as an opt-out of this feature.

The ControllerFilter only implements action filter and result filter, so
the new restriction about filter types on Controller is in place. A future
change will move the instantiation of the controller to after resource
filters.
2015-01-16 19:15:59 -08:00
Ryan Nowak 51e7812e7e Fix for #1722 - FromHeader does not respect default value
This change adds support for our three-valued logic to the default value
handling part of the MutableObjectModelBinder.

The issue is that we want to look up a default value when a 'greedy' model
binder returns true but doesn't find a value.

We also don't want to call the property setter unless there is:
1). A value from model binding OR
2). A default value
2015-01-16 17:59:00 -08:00
Ryan Nowak 692a07240c Some cleanup of ActionResults - #657
In general all properties are get/set so filters can change them.
 - some validate for not-null
 - where we use services it's get/set also

Services are resolved in the Execute method if not provided.

A few more ActionResults that return a body have the ability to set a
status code now (optional).
2015-01-16 17:29:56 -08:00
Kirthi Krishnamraju e41e5066f9 Added support for TryValidateModel and its corresponding tests 2015-01-16 17:23:59 -08:00
Doug Bunting 12565daf88 Correct `CheckBoxFor` to ignore `ViewData`
- #1483
- update tests to match

nits:
- cover a couple more `CheckBoxFor` test cases
- capitalize "CheckBox" consistently
2015-01-16 17:20:34 -08:00
Pranav K 80ada8d01b Introducing 'cache' tag helper
Fixes #1552
2015-01-16 16:57:33 -08:00