N. Taylor Mullen
b1b1da0781
Add Microsoft.AspNet.Razor.Runtime src and test project.
...
#136
2014-10-09 12:50:52 -07:00
N. Taylor Mullen
950828cbab
Refactored CodeGeneratorContext to CodeBuilderContext.
...
- Needed to separate the context's of "generation" and "building" to enable the communication of the TagHelperProvider.
2014-10-09 12:50:49 -07:00
N. Taylor Mullen
20824f37e0
Add tests to verify TagHelperParseTreeVisitor.
...
- Added tests to validate TagHelperParseTreeVisitor when dealing with valid HTML elements.
#71
2014-10-09 12:50:45 -07:00
N. Taylor Mullen
bb3ad0ede4
Fix test to work with TH rewriters.
...
- Added understanding to the ParserTestBase for TagHelperBlock's
- Added a helper class MarkupTagHelperBlock to make building test TagHelpers easier.
- Fixed some existing tests that "new"d up the RazorParser and didn't obide by the new contract (to provide optimizers).
#71
2014-10-09 12:50:42 -07:00
N. Taylor Mullen
3cba84104d
Add TagHelper parse tree visitor.
...
- The visitor looks for TagBlock's that match registered TagHelpers and rebuilds them into TagHelperBlock's.
- Added the code generator and corresponding chunk for a TagHelperBlock.
- Added syntax tree specific objects & helper methods to create accurate tag helper structures.
#71
2014-10-09 12:50:39 -07:00
N. Taylor Mullen
b68fae9b8c
Removed the TypeActivator from TagHelper creation.
...
- We now new up TagHelper's, requiring them to have parameterless constructors.
- Added test to validate throwing.
- Removed existing tests that expected the constructor injection behavior.
#1303
2014-10-09 12:48:20 -07:00
NTaylorMullen
3dff1ca410
Add ITagHelperActivator.
...
- The TagHelperActivator enables dependency injection via properties and allows access to the ViewContext.
- This replaces the ICanHasViewContext mechanism that we had in place before.
- Added tests and fixed up existing to work with new format for providing ViewContext.
#1258
2014-10-09 12:39:57 -07:00
Doug Bunting
05c35dd3ba
Add missing access modifier
2014-10-09 12:39:45 -07:00
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