Doug Bunting
829a5c9046
Expand model types `GenericModelBinder` can handle
...
- #2993
- use `ClosedGenericMatcher` to handle e.g. non-generic model types implementing requested interfaces
- reduce `IsAssignableFrom()` use since created binders use explicit casts i.e. handle explicit implementations
- also add more integration tests covering various collection key formats, some with validation errors
- merge a few `[Fact]`s into `[Theory]`s
2015-08-25 09:50:31 -07:00
Ryan Nowak
cfd9bfe13b
[PERF] Remove extra ModelStateDictionary allocations
...
The copy constructor is chaining to the wrong constructor. This results in
an extra 8 allocations of ModelStateDictionary per-request. All of the
various filter contexts inherit from ActionContext, that's how you get the
8 extras.
Small problem but easy fix.
2015-08-24 15:26:09 -07:00
Stephen Halter
ca0a42a01e
Merge branch 'Daniel15/unix-sockets' into dev
2015-08-24 12:53:31 -07:00
Pranav K
85ff9e1b7f
Merge remote-tracking branch 'origin/release' into dev
2015-08-24 12:37:10 -07:00
Pranav K
391797b15d
Updating to release AzureAD feed
2015-08-24 12:36:43 -07:00
KevinDockx
054b46c1cc
Implement new Remove op & fix value.GetTypê issue in Add op
2015-08-24 12:32:41 -07:00
Pranav K
34354ef53d
Merge remote-tracking branch 'origin/release' into dev
2015-08-24 12:29:09 -07:00
Pranav K
583c251f02
Updating to release AzureAD feed
2015-08-24 12:28:18 -07:00
Doug Bunting
bf7e0f141e
Add `IsReferenceOrNullableType` and `UnderlyingOrModelType` to `ModelMetadata`
...
- #2992
- use new properties to replace common helper methods
- still a few `Nullable.GetUnderlyingType()` calls
- creating `ModelMetadata` or sites lacking `ModelMetadata` access e.g. `ModelBindingHelper.ConvertTo()`
2015-08-24 12:26:50 -07:00
Ajay Bhargav Baaskaran
0beb39ec1c
[ Fixes #2947 ] Default ContentType is not set when user specified Response.ContentType exists
2015-08-24 12:17:18 -07:00
Ryan Nowak
1596cd9422
Fix #2527 - Remove FormCollection use
...
This removes the dependency on Microsoft.AspNet.Http from the Mvc.Core
code. Added the reference back to tests where needed (DefaultHttpContext).
2015-08-24 11:09:30 -07:00
Chris R
42343bedee
Raise test timeouts.
2015-08-24 10:52:50 -07:00
Brice Lambson
8ccfb99624
React to aspnet/EntityFramework#2902
2015-08-24 10:41:56 -07:00
Anthony van der Hoorn
92dc38ffd1
Missing "commands" from project.json
...
This was stopping the project running in VS
2015-08-24 10:21:28 -07:00
Anthony van der Hoorn
a984ea77a8
Switch over target on which server is open for
2015-08-24 10:20:32 -07:00
Anthony van der Hoorn
02fefd8b31
Fix problem with client not connecting on the correct port
2015-08-24 10:18:45 -07:00
ASP.NET Push Bot
a2a1c637c9
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
...
Source: aspnet/dnvm@184a7254d8
2015-08-24 09:56:55 -07:00
Brennan
5ac8abc16f
Merge branch 'release' into dev
2015-08-24 09:15:12 -07:00
Fabien Dehopré
17bd0c8e61
update install commands for Windows
...
update both CMD and Powershell install commands for Windows to include the configuration of the corporate proxy
2015-08-24 12:14:01 +02:00
Fabien Dehopré
bab8777bd9
add default proxy support to dnvminstall.ps1
...
Retrieve the default proxy settings from the system and also set the proxy credentials from the system too
2015-08-24 11:55:57 +02:00
Doug Bunting
a045324d3a
Do not include compiler-generated names in expression names
...
- #2890
- add lots of `ExpressionHelper` tests using `IdFor()` and `NameFor()` (which are thin veneers)
2015-08-23 14:22:49 -07:00
Chris R
c29ede3e78
Merge branch 'release' into dev
2015-08-22 21:20:11 -07:00
Chris R
86962ab12c
#278 Additional OIDC message validation.
2015-08-22 21:17:38 -07:00
Doug Bunting
8babf2b380
Change in-box tag helpers to use `DefaultFrameworkSortOrder`
...
- #2905
- override `Order` implementation inherited from `TagHelper`
- only exception is `UrlResolutionTagHelper` which already overrides `Order` to execute much earlier
2015-08-22 15:32:02 -07:00
N. Taylor Mullen
d0688a7e00
Add the ability for `TagHelper`s to exist inside templates.
...
- Previously doing `@<mytaghelper />` was invalid due to how we constructed templates lambdas.
#489
2015-08-21 16:51:47 -07:00
Brennan
acefcff61d
Make work on Xplat CoreCLR
2015-08-21 16:28:16 -07:00
N. Taylor Mullen
dbcc5e240a
Change `GetHashCode()` for `CaseSensitiveTagHelperDescriptorComparer` to order values.
...
- Ordered `RequiredAttributes`, `AllowedChildren` and `Attributes`.
#489
2015-08-21 15:20:57 -07:00
Ryan Nowak
4a7ada5f64
Make IValueProvider sync, IValueProviderFactory async
2015-08-21 14:58:55 -07:00
Ajay Bhargav Baaskaran
3519c375fc
Minor cleanup - removed unwanted @
2015-08-21 14:40:35 -07:00
Doug Bunting
aaa47d5e0e
Workaround https://github.com/aspnet/External/issues/21 in a couple more tests
...
- led to Travis build failures
2015-08-21 14:12:15 -07:00
Hao Kung
84259975ca
Update exception text
2015-08-21 13:16:41 -07:00
Hao Kung
4e0000163b
Updates to AddManager behavior
2015-08-21 13:00:35 -07:00
Ajay Bhargav Baaskaran
774219b2ef
[ Fixes #2788 ] Added a sample taghelper that handles IE conditional comments
2015-08-21 11:19:49 -07:00
Ryan Nowak
6d365e9a32
Make ValueProviderResult a string-ish struct
2015-08-21 11:02:40 -07:00
Doug Bunting
02cc82a055
PR comments commit
2015-08-21 10:45:43 -07:00
Ryan Nowak
516a435ea5
Fix #365 - Make IFormFileCollection implmenent IReadOnlyList<T>
2015-08-21 10:39:27 -07:00
Doug Bunting
070be7b656
Make validation in `TryUpdateModelAsync()` consistent with model binding elsewhere
...
- #2941
- honor `ModelBindingResult.IsModelSet` and use `ModelBindingResult.ValidationNode`
- enable correct validation of collections or after model binding falls back to the empty prefix
- code previously matched `Controller.TryValidateModel()`; less context available in that case
2015-08-21 08:17:19 -07:00
Ryan Nowak
b5c9d905d9
Fix #2986 - Make ModelMetadata getters null-safe
2015-08-21 07:58:02 -07:00
David Fowler
6ba7793636
Merge pull request #376 from khellang/owin-request-user
...
Add owin.RequestUser
2015-08-21 01:00:50 -07:00
Kristian Hellang
138bc6a20f
Added owin.RequestUser
2015-08-21 09:38:53 +02:00
Kristian Hellang
68eb9646ea
Added asserts to tests
2015-08-21 09:38:53 +02:00
N. Taylor Mullen
55760b4fcb
Add copy constructor to `TagHelperAttribute`.
...
- Added test to validate copy constructor does its job.
#492
2015-08-20 22:09:46 -07:00
N. Taylor Mullen
902de1599c
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:54 -07:00
N. Taylor Mullen
8b5bb0133d
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:50 -07:00
N. Taylor Mullen
724027ac02
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:44 -07:00
N. Taylor Mullen
c885b92c99
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:40 -07:00
N. Taylor Mullen
ad0dbe7314
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:37 -07:00
N. Taylor Mullen
a60188e10b
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:28 -07:00
N. Taylor Mullen
6b432e4e0e
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:09 -07:00
N. Taylor Mullen
5a7e091330
Update 'build.sh' to pull Sake from v2 NuGet feed.
2015-08-20 20:47:05 -07:00