N. Taylor Mullen
1ba4700339
Update default LinkTagHelper logger to log for a LinkTagHelper instead of ScriptTagHelper.
2015-03-20 14:31:43 -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
Doug Bunting
533474d07c
Bind POCO model correctly; fallback to empty prefix despite exact name match
...
- #1865
- change `MutableObjectModelBinder` to ignore exact match in value providers
- had an incorrect assumption: don't want exact model name to match since
this binder supports only complex objects
- also ignored `BinderModelName`, value provider filtering, et cetera
- reduces over-binding e.g. `[Required]` validation within missing properties
also add more tests of #2129 scenarios
2015-03-20 13:18:42 -07:00
Doug Bunting
94e326f953
`CompositeModelBinder.TryBind()` should return `null` more often
...
- #2129
- do not propagate results with `!IsModelSet`, allowing empty prefix fallback
- adjust `ComplexModelDtoModelBinder` to at least fake-bind all properties
- default values not consistently picked up otherwise
nit: correct 2 test names in `KeyValuePairModelBinderTest`
2015-03-20 13:18:13 -07:00
Doug Bunting
bcb2fa6ba2
Avoid exceptions in `ActionFilterController`
...
- fix typo in commit 51e7812
2015-03-20 13:02:42 -07:00
Doug Bunting
64c8a6fa40
Clean up `ModelBindingResult` constructor calls and related comments
...
- use named parameters more often
- add more comments about returned `ModelBindingResult`
- clean up `ModelBindingResult` doc comments
- cleanup `using`s
Nits:
- cleanup trailing whitespace
- change `retVal` -> `result` in `KeyValuePairModelBinderTest`
2015-03-20 13:02:23 -07:00
Doug Bunting
103538b889
Fix NRE in `MutableObjectModelBinder`
2015-03-20 12:17:47 -07:00
Praburaj
88aa820b9f
Reacting to File System changes
...
IFileProvider is becoming readonly.
2015-03-20 11:41:41 -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
Ajay Bhargav Baaskaran
e2058905ec
TagHelpers attribute targeting - part 2
2015-03-20 11:26:21 -07:00
Ajay Bhargav Baaskaran
bfdeda797d
TagHelpers attribute targeting - part 1
2015-03-20 11:15:40 -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
N. Taylor Mullen
0f1292abf6
Transition root paths => relative for tooling.
...
#2213
2015-03-19 17:54:33 -07:00
Kiran Challa
9a6f8b392d
[ Fixes #852 ] XmlDictionaryReader.CreateTextReader overload which supports Encoding is missing
2015-03-19 17:33:20 -07:00
Harsh Gupta
ac908d405e
Removing ModelMetadataProvider.GetModelMetadataForParameters
2015-03-19 16:42:54 -07:00
Ajay Bhargav Baaskaran
d166517dd6
React to aspnet/Razor#169 changes
2015-03-19 15:58:00 -07:00
Ajay Bhargav Baaskaran
9c1e2f54a5
[ Fixes #2157 ] Added additional functional tests for TempData
2015-03-19 15:55:23 -07:00
Kiran Challa
ab31be20ed
Fix tests to work on CoreClr (this does not fix the Xml tests failures)
2015-03-19 11:52:29 -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
N. Taylor Mullen
52c1c20967
React to HtmlElementName rename to TargetElement.
...
aspnet/Razor#311
2015-03-17 22:03:11 -07:00
Ajay Bhargav Baaskaran
fc9e1caf43
[ Fixes #1331 ] Register object for dispose in ObjectResult and
...
FileStreamResult
2015-03-17 17:04:05 -07:00
Ajay Bhargav Baaskaran
1c00cfe7aa
React to aspnet/Razor#281 changes
2015-03-17 14:16:50 -07:00
sornaks
d2bdd4f1d4
Removing 'Options' from ConfigureMvcOptions and ConfigureRazorViewEngineOptions.
2015-03-17 13:35:26 -07:00
sornaks
c1338a0542
Reacting to Razor changes for removing Generate*() method.
2015-03-17 13:12:38 -07:00
Kiran Challa
489fc52df8
[ Fixes #2108 ] StringOutputFormatter fails when HttpNotAcceptableOutputFormatter is used
2015-03-17 11:04:46 -07:00
ianhong
ee49ab727f
RazorPage.User should be ClaimsPrincipal
2015-03-17 10:41:22 -07:00
N. Taylor Mullen
2a28e6f4ce
Add tests to validate @tagHelperPrefix inheritance.
...
- Updated some naming bits that were still using the ViewStart name.
- Updated MvcRazorParserTests to test more cases of the parser, especially with @tagHelperPrefix.
#2110
2015-03-16 17:30:11 -07:00
N. Taylor Mullen
f49d52b5fc
Add @tagHelperPrefix inheritance support.
...
- Updated some naming bits that were outdated (referring to ViewStart).
- Added a TagHelperDirective merging mechanic to ensure user file descriptors and inherited descriptors come together correctly.
#2110
2015-03-16 17:30:05 -07:00
Hao Kung
f05520602f
React to Authenticate(schemes) being removed
2015-03-16 16:57:16 -07:00
Ryan Nowak
e16d263cd5
Reduce use of TypeActivation for ModelBinders
...
These model binders don't have any per-request state so there is no need
for them to be type activated. In one case the model binder actually does
its own caching which is being defeated by the fact that we register it as
type activated.
More changes to come in this area.
2015-03-16 15:10:32 -07:00
Praburaj
b485b60014
Updating the version of System.Runtime.Serialization.Primitives
2015-03-16 14:02:28 -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
Kiran Challa
f06007d428
[ Fixes #2156 ] Remove IConfiguration from AddMvc
2015-03-14 00:02:53 -07:00
Kiran Challa
9a44e3e08b
[ Fixes #2095 ] Mark IControllerFactory methods in DefaultControllerFactory as virtual
2015-03-13 12:50:29 -07:00
damianedwards
7d1c1ed8eb
Enable Tag Helper initializers:
...
- Any Action<ITagHelper, ViewContext> can be registered in DI to allow setting of tag helper properties after any [Activate] properties are set but before their bound from the source document and the tag helper is executed
- Removed previous tag helper options as initializers is the way to do this now
- #1689
- #2162
2015-03-13 12:31:02 -07:00
Praburaj
00feaaac29
React to AddSessionServices rename to AddSession
2015-03-13 11:52:50 -07:00
N. Taylor Mullen
800bcde501
Fix build.
2015-03-13 00:09:29 -07:00
N. Taylor Mullen
385fa29407
Update xunit.runner.kre => xunit.runner.aspnet.
2015-03-12 18:01:41 -07:00
Doug Bunting
7e3acd9506
Quick fix: Shut `npm install` up a bit
...
- remove `npm WARN package.json ValidationWebSite@0.0.0 No repository field.`
2015-03-12 17:26:01 -07:00
Praburaj
dfe397612c
Reacting to Caching Extension rename
2015-03-12 16:59:49 -07:00
Doug Bunting
e8091b76ce
Correct .xproj files that were recently added .kproj files
2015-03-11 22:55:59 -07:00
Doug Bunting
e2ae1496ec
Do not use deprecated `dnvm -x86` switch
2015-03-11 19:29:10 -07:00
Praburaj
38076269e1
React to Caching package rename - Fixing a missed cshtml
2015-03-11 18:03:05 -07:00
Praburaj
2b92f7772d
React to Caching package rename
...
dependent on https://github.com/aspnet/Caching/pull/49/files
2015-03-11 17:24:09 -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