Commit Graph

27752 Commits

Author SHA1 Message Date
Doug Bunting 61b76fd99f Use `ClosedGenericMatcher.ExtractGenericInterface()` from Common repo
- added in aspnet/Common@aae8e6e

nits:
- reorder dependencies alphabetically
- avoid `GetGenericArguments()` extension method with `ExtractGenericInterface()` return value
 - use `GenericTypeArguments`
- usual trailing whitespace auto-removals
2015-05-08 20:23:06 -07:00
Harsh Gupta 583277cceb Adding tests for ActionParameters and TryUpdateModel 2015-05-08 19:11:03 -07:00
Ryan Nowak 8a476b56d8 Part 2 of fix for #2248 - Support 'override' of attribute routes on action
methods

This change applies the 'override' semantic to attribute routes on virtual
methods.

A method override can either inherit attribute routes from a base
definition, or can replace them. It's not possible to inherit routes and
also add to them.
2015-05-08 17:05:50 -07:00
Ryan Nowak 46db71cfce Part 1 of fix for #2248 - Ambiguity when inheriting attribute routes
The change here is to make an attribute route defined on a base class
inherited only if no other routes were defined 'closer' to the controller
class.

To put another way, attribute routes can either be inherited or
overridden, you can't inherit + add your own.
2015-05-08 17:05:45 -07:00
Barry Dorrans eaa7ca9e81 Adding validation regex timeout. 2015-05-08 14:33:45 -07:00
Ryan Nowak 2b4702728d Fix #1910 - Review and improve docs for 'Order' properties 2015-05-08 14:31:32 -07:00
Victor Hurdugaci 7839b80f04 Scripts to run tests remotely 2015-05-08 14:08:13 -07:00
Ryan Nowak 0f6b2331ce Fix #2378 - Fully expand models in ApiExplorer
This change dramatically simplifies the parameter discovery logic in
DefaultApiDescriptionProvider. Instead of surfacing POCO objects as
parameters, we now fully expand every model.

The rationale is that we want to show every key/value that can be set by
the user and not force consumers of ApiDescription to do that themselves.

Tests are cleaned up to match the new behavior.
2015-05-08 11:53:38 -07:00
Hao Kung f0098b6e1e No password = auto fail password checks
Rather than null ref boom...
2015-05-08 10:57:18 -07:00
Chris R c4df4a0a15 #303 Enable tests for CoreCLR. 2015-05-08 10:52:43 -07:00
Eilon Lipton 75d047795b Merge pull request #131 from hishamco/dev
Using [NotNull]
2015-05-07 21:53:38 -07:00
damianedwards ca4b85e19f Added missing doc comments 2015-05-07 18:19:54 -07:00
damianedwards 944c84bc5d Implemented CookieRequestCultureStrategy & other changes:
- Updated sample to enable setting/clearing cultures via cookie
- Cache CultureInfo construction as it's not built into .NET Core
- Cache RequestCulture construction as they're immutable anyway and created lots per app if the middleware is running
- Fix issue where by invalid culture names were not handled (it crashed)
- Handle the pesky favicon.ico request from browsers
- Ignore .vs folder
2015-05-07 18:11:10 -07:00
Hisham Abdullah Bin Ateya 91b3ea4547 Using expression-bodies methods 2015-05-08 01:52:03 +03:00
Chris R b7f4058c28 React to Http namespace changes. 2015-05-07 15:31:35 -07:00
Chris R 6814576b5e React to Http namespace changes. 2015-05-07 15:30:33 -07:00
Chris R bd03142dab React to Http namespace changes. 2015-05-07 15:19:10 -07:00
Chris R ff406ecdf1 React to Http namespace changes. 2015-05-07 14:16:46 -07:00
Chris R 7d52b3f76e React to Http namespace changes. 2015-05-07 14:14:03 -07:00
Chris R 071de85e04 React to Http namespace changes. 2015-05-07 14:10:59 -07:00
Chris R 43d50db495 React to Http namespace changes. 2015-05-07 14:03:31 -07:00
Chris R e30ca4d673 React to Http namespace changes. 2015-05-07 13:59:32 -07:00
Chris R bd5700ea54 React to Http namespace changes. 2015-05-07 13:56:05 -07:00
Chris R bff13b2e9b React to Http namespace changes. 2015-05-07 13:43:34 -07:00
Chris R d0276d4d55 React to Http namespace changes. 2015-05-07 13:41:04 -07:00
Chris R ad93dd74b6 React to Http namespace changes. 2015-05-07 13:26:53 -07:00
Chris R eb0fe6a92a #281 Reorganise files, namespaces for internal and features. 2015-05-07 13:15:14 -07:00
Chris R 550b2252ea #265 Remove Use extensions that take services. 2015-05-07 13:15:11 -07:00
Hisham Abdullah Bin Ateya 582f562bbb Using [NotNull] and 'nameof' operator 2015-05-07 22:04:48 +03:00
Suhas Joshi afca1242bc Fixing database changes from EF 2015-05-07 11:02:14 -07:00
damianedwards ec8ede5d8a Fixed missing resource caching issue in ResourceManagerStringLocalizer 2015-05-07 10:32:59 -07:00
Hisham Abdullah Bin Ateya 4852bf0c52 Using [NotNull] 2015-05-07 10:17:35 -07:00
Hisham Abdullah Bin Ateya 018b4c2426 Using 'nameof' operator instead of magic strings 2015-05-07 10:17:34 -07:00
Troy Dai 2f09b07adc Package rename: Microsoft.AspNet.DataProtection.Shared -> Microsoft.AspNet.DataProtection.Sources 2015-05-07 10:16:20 -07:00
Victor Hurdugaci 63038b7278 Use the in memory store on the Nano server 2015-05-07 09:51:18 -07:00
Troy Dai 78ed1ce250 React to common package name change 2015-05-07 09:41:52 -07:00
Troy Dai e57440f92c React to common package name change 2015-05-07 09:41:05 -07:00
Troy Dai d3b0aba9b8 React to common package name change 2015-05-07 09:40:03 -07:00
Troy Dai 959616cb9c React to common package name change 2015-05-07 09:39:41 -07:00
Troy Dai ea717729c1 React to common package name change 2015-05-07 09:39:08 -07:00
Troy Dai f7f4d490aa React to common package name change 2015-05-07 09:37:58 -07:00
Troy Dai ef9dde7d7c React to common package name change 2015-05-07 09:37:39 -07:00
Troy Dai 0440ca751e React to common package name change 2015-05-07 09:36:55 -07:00
Troy Dai fe80a65ffc React to common package name change 2015-05-07 09:36:15 -07:00
Troy Dai e00f842a45 React to common package name change 2015-05-07 09:35:31 -07:00
Hao Kung 5804856fe2 React to security changes 2015-05-06 22:24:08 -07:00
Hisham Abdullah Bin Ateya 54fc775b24 Using 'nameof' operator instead of magic strings 2015-05-07 06:37:00 +03:00
damianedwards 41fe215027 Sample improvements 2015-05-06 18:21:34 -07:00
damianedwards 3dc0d40f7d Added a sample & fixed some issues it found 2015-05-06 18:09:59 -07:00
damianedwards b11f7d51c3 Bunch of changes:
- Implemented pluggable strategies for determining request culture
- Added NotNull on public APIs
- Added support for a default request culture
- Added options class for configuring the middleware
- Improved the query string logic to support separate formatting & language cultures
- Implemented the logic for accept-language header
- Added more doc comments
2015-05-06 16:51:23 -07:00