Kirthi Krishnamraju
9d2b1822d9
Fix for #819 : Attribute Routing: Resolve Name + Token Replacement
2015-04-22 11:47:23 -07:00
Kiran Challa
162c4709c1
Refactor attribute route
2015-04-21 11:02:05 -07:00
sornaks
064c01cf2b
#2267 - Moving responsibility for setting ModelState.MaxAllowedErrors into a more appropriate location.
2015-04-20 14:31:04 -07:00
Ajay Bhargav Baaskaran
a4fd51772f
[ Fixes #2276 ] Serialize only simple types to session in TempData
2015-04-17 14:30:47 -07:00
Kiran Challa
e7728dde3f
Log view discovery
2015-04-17 04:23:45 -07:00
Chris Ross
6223aac9be
Handle Http.Core rename.
2015-04-16 15:48:27 -07:00
Kiran Challa
c3f10f4a0f
Logging for content-negotiation
2015-04-16 12:02:55 -07:00
Kiran Challa
7576116969
Removed test code related to logging and instead used Testing repo's logging helpers.
2015-04-16 11:19:24 -07:00
Kiran Challa
65bd8c448a
Removed Logging related ILogValues types and cleaned up tests.
2015-04-16 11:19:20 -07:00
Kiran Challa
20daab2fb5
Removed direct dependency on Framework.Logging and instead used Framework.Logging.Interfaces.
...
Fixed breaking code which additionally cleans up start-up logging which we wanted to do.
2015-04-16 11:19:17 -07:00
Henk Mollema
9eb87d4676
Removed htmlAttributes null check in GenerateForm
...
The null check caused the form not to use the default url generation
behavior when html attributes were specified.
2015-04-16 16:29:27 +02:00
Harsh Gupta
c67236141b
Fixes 2304:
...
The fix splits client validation and model validation into two separate hierarchies.
Introduced ClientModelValidatorProvider in MvcOptions, which can be iterated to produce IClientModelValidators.
As a result of this, HtmlGenerator code can be free of ActionBindingContext and directly consumes options.
This also means that we do not modify the client validations during resource filters.
2015-04-15 14:30:46 -07:00
Ajay Bhargav Baaskaran
4951235eef
[ Fixes #2337 ] Added support for file types in input taghelper and
...
htmlhelper
2015-04-15 11:58:40 -07:00
Hao Kung
bee20973c7
React to http challenge changes
2015-04-15 11:39:12 -07:00
Youngjune Hong
852d6402eb
Remove an unecessary test from DefaultAssemblyProviderTests
2015-04-14 16:00:10 -07:00
Ryan Nowak
d0e5118741
Delay Attribute Route initialization to the first request
2015-04-13 16:16:27 -07:00
Kiran Challa
24b930fa7c
Clean up logging.
...
- Removing scopes as we want to limit the number of scopes being created.
- Added new log statements using the new log format string.
2015-04-13 15:59:38 -07:00
Harsh Gupta
58a5ad2279
Adding Outputformatter in resource filters.
2015-04-08 16:46:46 -07:00
Pranav K
43e24b2aad
Removing IInputFormatterSelector
...
Follow up work item to #2269
2015-04-08 07:35:48 -07:00
Doug Bunting
73e8fc10e4
Automatically use `type="number"` for expressions of more types
...
- #2261
- include `short`, `ushort`, `float`, `double`
- correct typo in `<input/>` tag helper; ignored calculated format
- only one test for `<input/>`'s calculated format 😦
- fill some `Editor*()` and `<input/>` tag helper test gaps
nit: clean up some trailing whitespace
2015-04-07 17:19:08 -07:00
Pranav K
f9d53e341c
* Simplify MvcOptions
...
* Remove facades for accessing Options<T> and pass options to the invoker
Fixes #2266
Fixes #2269
2015-04-07 14:45:53 -07:00
Doug Bunting
94721f09a9
Remove duplicate tests
...
- duplication in data sets confuses xUnit
2015-04-07 11:00:45 -07:00
Kiran Challa
9330789fe3
Reacting to ILogger api changes
2015-04-04 02:52:43 -07:00
Doug Bunting
7916cb9c68
Add a few more `<Service/>` items
2015-04-02 22:55:21 -07:00
Doug Bunting
393aa54545
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:27 -07:00
Doug Bunting
9ac6ebd2b2
Refactor `IHtmlGenerator.GenerateSelect()` and address #2240
...
- add `IHtmlGenerator.GetCurrentValues()` method
- bring together bits of `GenerateSelect()` and `UpdateSelectListItemsWithDefaultValue()`
- get rid of ugly `out` parameter
- also allows `<option/>` tag helpers to run before `<select/>` helper generation
- match `null` values and `SelectListItem`s with empty values
- match `enum` names correctly
- add doc comments for `IHtmlGenerator.GenerateSelect()` methods
2015-03-24 12:37:19 -07:00
Kirthi Krishnamraju
a5da5b3acd
Removed reflection code; used JsonContract instead and added new JsonPatchInputFormatter
2015-03-23 14:46:54 -07:00
Harsh Gupta
5818c0b5b7
Fixes #583 Generating a unique cookie name for an application.
2015-03-23 14:05:05 -07:00
ianhong
c1eea5b3fa
React to Should GetVirtualPath return PathString in Routing
2015-03-22 19:44:45 -07:00
Doug Bunting
570b1e583a
Add `Html.GetEnumSelectList()` helpers
...
- #438 part 2/2
nit: test `[Display]` that does not set `Name` in `DataAnnotationsMetadataProviderTest`
2015-03-22 12:40:44 -07:00
Harsh Gupta
adeb1ba194
Adding support for model binding specifically marked controller properties.
2015-03-20 17:37:09 -07:00
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
Ryan Nowak
2b82ee0255
Refactor of ViewComponent extensibility
...
Adds ViewComponentDescriptor and caching (provider, collection,
collectionprovider).
Removes IViewComponentInvokerProvider, simplifies
IViewComponentInvokerFactory.
2015-03-20 13:39:54 -07:00
ianhong
1c6800beab
List of assembly names in DefaultAssemblyProvider needs to be kept up to date
2015-03-20 11:38:43 -07:00
Kirthi Krishnamraju
2b246e7acc
Fix for #1694 issue : Removed prefix for ModelState keys for FromBody parameters
2015-03-20 10:41:06 -07:00
ianhong
27bdec40a6
React to #154 (Routing - adding data token to GetVirtualPath)
2015-03-19 21:51:14 -07:00
Harsh Gupta
ac908d405e
Removing ModelMetadataProvider.GetModelMetadataForParameters
2015-03-19 16:42:54 -07:00
Ajay Bhargav Baaskaran
9c1e2f54a5
[ Fixes #2157 ] Added additional functional tests for TempData
2015-03-19 15:55:23 -07:00
Hao Kung
4b5dd199ca
React to hosting changes
2015-03-19 11:07:25 -07:00
Harsh Gupta
015edefa96
Cors Support in MVC.
2015-03-18 19:37:00 -07:00
Kiran Challa
ee4ffea294
[ Fixes #2190 ] Remove GetSupportedContentTypes method from IOutputFormatter and move to a separate metadata interface
2015-03-18 16:13:14 -07:00
Ajay Bhargav Baaskaran
fc9e1caf43
[ Fixes #1331 ] Register object for dispose in ObjectResult and
...
FileStreamResult
2015-03-17 17:04:05 -07:00
Kiran Challa
489fc52df8
[ Fixes #2108 ] StringOutputFormatter fails when HttpNotAcceptableOutputFormatter is used
2015-03-17 11:04:46 -07:00
Ryan Nowak
fc00aff7c5
Add TestCommon project
2015-03-16 13:49:29 -07:00
Kiran Challa
3d247ec028
[ Fixes #2086 ] FilePathResult WriteFileAsync uses SendFile feature incorrectly
2015-03-16 13:05:12 -07:00
N. Taylor Mullen
385fa29407
Update xunit.runner.kre => xunit.runner.aspnet.
2015-03-12 18:01:41 -07:00
Hao Kung
f3a9ce1ec1
Welcome home ScopedInstance
2015-03-11 15:03:29 -07:00
N. Taylor Mullen
c1a026cbf7
Update .kproj => .xproj.
2015-03-11 14:01:43 -07:00
Kirthi Krishnamraju
7b18d1d3f1
Clear ModelState errors of model before TryValidateModel or TryUpdateModel
2015-03-11 10:14:28 -07:00
Ajay Bhargav Baaskaran
db728cd386
Introducing TempData
...
- Issue #455
- Updated MVC sample
- Added relevant tests
2015-03-10 12:04:05 -07:00