Commit Graph

42564 Commits

Author SHA1 Message Date
Doug Bunting 3492be3c6c Add copyright notices to new files 2014-10-09 12:39:32 -07:00
Doug Bunting 639a788ed8 Tag Helpers: add `ModelExpression` class to support `Expression<Func<TModel, TValue>>` attributes
- includes new `RazorPage<TModel>.CreateModelExpression<TValue>()` method
- #1240

nit:
- regenerating the resources reordered Microsoft.AspNet.Mvc.Core's Resources.designer.cs
2014-10-09 12:39:19 -07:00
Doug Bunting 3290791c5f Use nameof when initializing `GeneratedTagHelperContext`
nits:
- missing blank line before a comment
- cleanup line breaks in `RazorPage.CreateTagHelper`
2014-10-09 12:39:04 -07:00
Doug Bunting 9899cb336a Cleanup tabs in project.json files 2014-10-09 12:38:52 -07:00
NTaylorMullen e44e59fd29 Updated to work with latest Razor changes. 2014-10-09 12:38:42 -07:00
NTaylorMullen d041249b27 Add CreateTagHelper to RazorPage.
- The CreateTagHelper method is responsible for creating and activating TagHelpers.
- Added the support for requesting the ViewContext.
- Added tests to validate the tag helper creation mechanism.

#1104
2014-10-09 12:38:31 -07:00
N. Taylor Mullen 082512f63c Add writing scopes to RazorPage.
- RazorPage now has the ability to use writing scopes to control where things are written.
- This enables RazorPages to use these writing scopes with TagHelpers.  TagHelpers use them to buffer attributes that have C# contained within them and to also buffer content of TagHelpers whos ContentBehavior is Modify.
- Added RazorPage tests to validate their functionality.

#1102
2014-10-09 12:38:19 -07:00
NTaylorMullen e995e7a3e2 Configure host to utilize tag helper types.
- Set the appropriate GeneratedTagHelperContext properties to ensure code is generated correctly.
- Set the TagHelperDescriptorResolver.

#1165
2014-10-09 12:38:04 -07:00
N. Taylor Mullen 757441777e Use Microsoft.AspNet.Razor.Runtime project. 2014-10-09 12:37:54 -07:00
N. Taylor Mullen 24a12ba103 Use CodeBuilderContext instead of CodeGeneratorContext. 2014-10-09 12:37:38 -07:00
NTaylorMullen be4a6c8d98 Split FunctionalTests from Mvc solution.
- Created a solution that had everything the Mvc.sln had EXCEPT functional tests.
- Added Mvc.NoFun.sln.

#1227
2014-10-09 12:18:30 -07:00
Chris Ross 4853554147 #39 - Port the OAuth Bearer middleware from Katana. 2014-10-09 09:04:24 -07:00
Pranav K 95852c38c4 Reacting to DI changes 2014-10-08 20:08:59 -07:00
Pranav K da102032b5 Reacting to Dependency Injection changes 2014-10-08 19:28:37 -07:00
Hao Kung dd58aeedb1 React to UsePerRequestServices rename 2014-10-08 15:51:35 -07:00
Praburaj ece6fc6c47 SignInAsAuthenticationType value changed with identity changes 2014-10-08 14:47:55 -07:00
Praburaj b2a20bf4f5 GetExternalAuthenticationTypes moved to SignInManager now
Fixing a sample break.
2014-10-08 14:26:03 -07:00
Chris Ross f5577c589e #130 - Remove semi-colon support from query parsing. 2014-10-08 14:25:59 -07:00
Hao Kung 95c7a659c2 React to identity/options/security changes 2014-10-08 14:02:04 -07:00
Hao Kung a4ce31c30d Rename Identity.SqlServer back to EntityFramework 2014-10-08 13:36:38 -07:00
Hao Kung ffa226dfa9 React to options / DI / startup changes 2014-10-08 13:11:49 -07:00
Hao Kung 3426034bcb Use DI activated options for auth middlewares
UseXXX() now use DI activated options
Use ExternalAuthenticationOptions instead of DefaultSignInAs
2014-10-08 13:02:08 -07:00
Hao Kung 6dfcfaa7eb React to options changes 2014-10-08 12:56:53 -07:00
Hao Kung 3e4a412b21 React to options change 2014-10-08 12:56:01 -07:00
Hao Kung 53eea70c06 Startup: Call ConfigureServices if exists 2014-10-08 12:05:44 -07:00
Pranav K 83da8e257d Generate code for expressions in design time to enable intellisense
Fixes #80
2014-10-08 09:53:27 -07:00
Murat Girgin d3ef91ea91 Fixing NRE with logging 2014-10-08 09:47:39 -07:00
YishaiGalatzer fea30a4096 Making action selection logging not throw on 404 2014-10-07 23:32:59 -07:00
YishaiGalatzer ba1884aacb Make wait service not timeout without yelling, and making the timeout longer 2014-10-07 23:04:36 -07:00
YishaiGalatzer 67a30e491f Introduce default order for framework ordered items to be -1000 2014-10-07 21:43:50 -07:00
Ryan Nowak 8a3e64e164 fix doc error 2014-10-07 20:46:39 -07:00
Ryan Nowak 19fbcdf5a8 Fix for #1271 - Add copy constructors for ApplicationModel types. 2014-10-07 19:40:42 -07:00
sornaks 5b2948dd73 Excluding a test case in Mono + Fixing a test case. Fixing line lengths. Fixing error messages for tests to pass in Mono. 2014-10-07 11:11:55 -07:00
Chris Ross 001639ff48 Update helios dependency in samples. 2014-10-07 10:58:45 -07:00
Chris Ross 536f6830ba Fix ILibaryInformation.Version break. 2014-10-07 09:31:08 -07:00
David Fowler 665780b18f Fixed failing tests by adding an ILoggerFactory 2014-10-07 01:16:11 -07:00
sornaks a88f59fc49 Issue #1176: Renaming ActionDescriptor, ActionDescriptorProvider, ActionInvoker, ActionInvokerProvider, ActionExecutor, ModelBuilder, Tests. Either dropping "Reflected" or changing it to "Controller" depending on the context. 2014-10-06 20:21:55 -07:00
Max Toro fc5f702162 Made GetVirtualPath virtual
For extensibility. This method has always been virtual in MVC and Web API.
2014-10-06 19:21:20 -07:00
YishaiGalatzer 144a4b5921 Make RouteDataActionConstraint be POCO only 2014-10-06 16:54:41 -07:00
sornaks f1c1549267 Issue #452: Changes to enable validation for objects generated by InputFormatters. UnitTests + FunctionalTests for the same. 2014-10-06 16:29:56 -07:00
DamianEdwards f332bf6800 Fix issues in MusicStore.Spa package.json 2014-10-06 15:01:57 -07:00
DamianEdwards 788f0b7c07 Fix missing npm module in MusicStore.Spa 2014-10-06 15:00:01 -07:00
N. Taylor Mullen 2670b19f5c Remove framework assembly versions. 2014-10-06 14:57:43 -07:00
Brice Lambson e370c974e1 Remove framework assembly versions 2014-10-06 14:52:48 -07:00
DamianEdwards 18bd42bcfe Use grunt-bower-task in MusicStore.Spa 2014-10-06 14:30:08 -07:00
Peter Hsu 6826eb183c Merge pull request #81 from aspnet/activator
Activator change requires TypeActivator to be singleton
2014-10-06 12:59:48 -07:00
Brice Lambson d86bb2d9c8 Add Home & BugTracker to "all repos" list 2014-10-06 12:08:38 -07:00
DamianEdwards 7055949e7b Enabling admin pages in MusicStore.Spa:
- Updated attribute routing so it works now
- Created a Pages folder and PageController for serving pages, I don't
  like views very much
- Worked around an EF issue
- Fixed ApiResult to use JsonResult.ExecuteResultAsync
- Made PagedList take the sort expression so it can be conditionally applied as calling Count on the query passed causes issues if it contains an OrderBy expression
- Made web server ports not conflict with non-SPA MusicStore
2014-10-06 12:07:21 -07:00
Brice Lambson ba1b99c745 Re-add checkout command to update-master task 2014-10-06 10:51:37 -07:00
Pranav K c0e077dcd4 Updating ConnegWebSite name in tests 2014-10-06 10:41:36 -07:00