Commit Graph

39740 Commits

Author SHA1 Message Date
Pranav K 8b0500dacf Replace RNGCryptoServiceProvider with RandomNumberGenerator 2014-07-17 09:20:51 -07:00
Pranav K 4ec0532087 Reacting to System.Security.Cryptography.Encryption package rename 2014-07-17 08:39:43 -07:00
Ryan Nowak bff94f169f Fix for issue #610 - Ignore internal and nested types
This change exludes internal and nested types from being treated as
controllers. This is consistent with MVC5's behavior.

DefaultActionSelectionConventions was primarily tested through running
action selection. I wanted to also test the methods with substantial logic
in this class, so I moved a spate of a classes from private classes inside of the
integration tests to public classes so they could be shared. I also added
tests to fill gaps in DefaultActionSelectionConventions, which is the vast
vast majority of this change.
2014-07-16 16:33:26 -07:00
Pranav K 9f8c656b31 IUrlHelper and IViewComponentHelper need to be activated
* Removing Init method and using [Activate] to activate IUrlHelper.
* Moving IViewComponentHelper to default injected properties
* Adding functional tests to verify these properties are injected \
  activated

Fixes #789
2014-07-16 16:24:03 -07:00
Chris Ross dc055f783a #91 Add constructors to Form, Query, and Cookie features for testing. 2014-07-16 16:12:46 -07:00
Chris Ross e09448a383 Update solution. 2014-07-16 14:45:58 -07:00
Chris Ross fadf6ae5e2 Add missing sample namespace. 2014-07-16 14:45:55 -07:00
Chris Ross 8b46d43dcb Make middleware report when auth fails (async). 2014-07-16 14:45:53 -07:00
Yishai Galatzer 472e500864 Cache file info access in viewengine
Move compilation and VirtualPathViewFactory to be singletons
And cache access to files.

The cache time is controlled by MVC options.
The cache is implemented in the ExpiringFileInfoCache.cs
2014-07-16 13:12:21 -07:00
Hao Kung bbb848ae1d Add identity sample 2014-07-16 12:44:23 -07:00
Chris Ross de1017e010 Fix test... 2014-07-16 12:20:57 -07:00
Chris Ross fe5202b3d2 Fix test. 2014-07-16 12:17:36 -07:00
Chris Ross dd7537de4a #103 Fix ambigious Keys property on IHeaderDictionary. 2014-07-16 12:11:51 -07:00
Hao Kung 54400baed3 Delete old files 2014-07-16 11:59:03 -07:00
Hao Kung 214db69b0a Identity EF Cleanup
Rename extension method to AddIdentitySqlServer
Switch to using IdentityUser for EF
Add generic support for primary key
2014-07-16 11:53:11 -07:00
Javier Calvarro Nelson 87c430ae19 [#732] Attribute Routing: Implement `~/` for overriding a prefix
This change allows a user to override a route prefix set using
[Route("...")] on the controller by providing a route template
on the action that starts with "~/" or "/". For example,
[HttpGet("~/...")] or [HttpGet("/...")]

If the user specifies a template in [Route] that starts with "~/"
or "/", we will just strip the prefix from the template and use
the remaining part of the template.

The reason to do this is that there's a reasonable extensibility
scenario where a user can implement a global prefix for routes as
a convention (using IReflectedApplicationModelConvention), and use
~/ to escape that prefix (just like we support with action-level routes).
2014-07-16 09:40:38 -07:00
Pranav K bbdb2dfbf2 Adding support for activating view properties
Fixes #700
2014-07-15 16:26:07 -07:00
Ryan Nowak 3eb6c22330 Make RoutePartsEqual public. 2014-07-15 14:25:05 -07:00
Ryan Nowak 038802ee45 removing unneeded web.config 2014-07-15 14:14:15 -07:00
Hao Kung 53e4626127 React to Identity changes 2014-07-15 13:05:07 -07:00
Pranav K 6b2099df28 Consume SKIP_KRE_INSTALL in build.cmd to skip installing kvm 2014-07-14 22:06:25 -07:00
Pranav K 0385438ed0 Reacting to System.Collections versioning change 2014-07-14 16:51:46 -07:00
Pranav K 8307e9b1f3 Reacting to System.Collections versioning change 2014-07-14 16:48:04 -07:00
Pranav K 748c5394ad Reacting to System.Collections versioning change 2014-07-14 16:47:38 -07:00
Pranav K 4bbdefbe65 Reacting to System.Collections versioning change 2014-07-14 16:26:28 -07:00
Pranav K b49b46c5b6 Reacting to System.Collections versioning change 2014-07-14 16:25:55 -07:00
Pranav K b9898ef249 Reacting to System.Collections versioning change 2014-07-14 15:54:43 -07:00
Pranav K f6106e424e Reacting to System.Collections versioning change 2014-07-14 15:54:00 -07:00
Pranav K e40565e91f Reacting to System.Collections versioning change 2014-07-14 15:53:02 -07:00
Pranav K 8ab566e049 Reverting version change to ComponentModel 2014-07-14 15:35:04 -07:00
Ryan Nowak ad0ebb9f4c cr feedback 2014-07-14 15:31:45 -07:00
Pranav K ccbf458f71 Reacting to System.Collections version change 2014-07-14 15:27:24 -07:00
Pranav K fab9ffd208 Reacting to System.Collections version change 2014-07-14 15:22:43 -07:00
Pranav K 8aef9ff651 Reacting to System.Collections version change 2014-07-14 15:20:49 -07:00
Pranav K 65dfbed8d8 Reacting to System.Collections version change 2014-07-14 15:19:32 -07:00
Pranav K 4fc0be86b6 Reacting to System.Collections version change 2014-07-14 15:11:48 -07:00
Pranav K 6c94e0317b Reacting to System.Collections version change 2014-07-14 15:07:44 -07:00
Pranav K 3692cc7d83 Revert "Adding support for activating view properties"
This reverts commit 21bb8cb9fb.
2014-07-14 11:42:41 -07:00
Pranav K 21bb8cb9fb Adding support for activating view properties
Fixes #700
2014-07-14 10:40:07 -07:00
David Fowler 30df49535c Fixed project.json casing 2014-07-13 22:49:42 -07:00
David Fowler 85d0abecad Renamed Project.json to Project.json2 2014-07-13 22:49:42 -07:00
David Fowler efd225a9cd Renamed configurations to frameworks in project.json 2014-07-13 22:31:03 -07:00
David Fowler c27ba5f00f Made some tweaks to k test
- Change to look in frameworks instead of configurations when
  running tests
- Assume net45 if nothing specified
2014-07-13 22:24:47 -07:00
David Fowler 33cd0d89aa Renamed configurations to frameworks in project.json 2014-07-13 22:12:48 -07:00
David Fowler 0a50505f4d Renamed configurations to frameworks in project.json 2014-07-13 22:09:54 -07:00
David Fowler b2d2840a6f Renamed configurations to frameworks in project.json 2014-07-13 22:09:09 -07:00
David Fowler 25efba7563 Renamed configurations to frameworks in project.json 2014-07-13 22:06:12 -07:00
David Fowler ea98a50e43 Renamed configurations to frameworks in project.json 2014-07-13 22:01:33 -07:00
David Fowler f696a06012 Renamed configurations to frameworks in project.json 2014-07-13 22:00:44 -07:00
David Fowler 0d1f308753 Renamed configurations to frameworks in project.json 2014-07-13 22:00:23 -07:00