Commit Graph

42590 Commits

Author SHA1 Message Date
Doug Bunting de4cafa8cd Handle complex expressions for bound non-string tag helper attributes
- #129 and support aspnet/Mvc#1253
- add new `CSharpTagHelperAttributeValueVisitor` that writes the raw expression
- add tests of embedded `@(...)` and mix that with normal expressions
- add new resources for errors in `CSharpTagHelperAttributeValueVisitor`
 - write errors using `ParserErrorSink`
- update baselines to match new code generation

nits:
- cleanup long lines in `CSharpTagHelperCodeRenderer`
- remove a few unused resources
2015-01-15 16:32:16 -08:00
Doug Bunting 7b8126367c Minor: `LineMapping` and `MappingLocation` debug visualizations were types' full names
- add `ToString()` overrides for these classes

Nits:
- improve assertion failures about code mapping mismatches
- add `GENERATE_BASELINES` reminder to test project.json
2015-01-15 16:32:06 -08:00
Doug Bunting 26afdbd889 Plumb `ParserErrorSink` through to `CodeBuilderContext`
- precursor for #129
- remove unused `GeneratorResults` ctor to avoid duplicating `ParserResults` code

nit: make a few `ParserResults` properties immutable
- also change `ParserErrors` type to `IEnumerable<RazorError>`
2015-01-15 16:31:33 -08:00
Ryan Nowak 623b733eaa Adding a sample (test) for using custom IRouter implementation with MVC
This is a demonstration of how to inject an IRouter in between traditional
routes and MVC's handler. This allows you to accomplish a variety of
things that were possible with WebAPIs handlers, but inside the routing
system.

The example here turns a header representing the user into a locale, which
is used to select a controller. You could do other things like reject the
route match or change link generation.

There is one subtle project change here, to allow the same to be possible
for attribute routing, we need to create the attribute route after running
the user's routing configuration code.
2015-01-15 16:31:21 -08:00
Chris Ross 08b2b11940 Remove PipelineCore dependency. 2015-01-15 16:14:08 -08:00
Kiran Challa 02f4ca9f05 [Fixes #1791]Remove XML formatter from defaults 2015-01-15 15:46:49 -08:00
Suhas Joshi 6e294035a5 Added logging to code and updated tests 2015-01-15 15:42:48 -08:00
Chris Ross 9aff289dfe Handle PipelineCore rename. 2015-01-15 15:25:17 -08:00
Doug Bunting f38d08a408 #37, Support sample- or test-only repositories
- skip a few targets when src directory does not exist
2015-01-15 15:02:41 -08:00
Chris Ross 5e55833168 Handle PipelineCore rename. 2015-01-15 14:27:53 -08:00
Chris Ross 8385a3c3fc Handle PipelineCore rename. 2015-01-15 14:20:16 -08:00
Pranav K bef9af4679 Fixing build break
* Run ModelBinding test that uses Moq to run under ASPNET50
* Update AssociatedValidatorProviderTest to reflect API changes
2015-01-15 14:20:00 -08:00
ASP.NET Push Bot 91998bd9cc ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@2ce0386ce7
2015-01-15 14:15:20 -08:00
Chris Ross 19ccebb4ce Handle PipelineCore rename. 2015-01-15 14:03:11 -08:00
Pranav K fe1bcc7a24 ElementalValueProvider performs incorrect prefix check in
ContainsPrefixAsync

Fixes #1814
2015-01-15 14:02:41 -08:00
Pranav K b24cec0add Add net45 as a target framework for Microsoft.AspNet.Mvc.Common 2015-01-15 14:02:36 -08:00
Chris Ross f7c502a9e6 Handle PipelineCore rename. 2015-01-15 13:57:07 -08:00
Ajay Bhargav Baaskaran 437eb93bde File upload model binder
- Support for binding posted file to type IFormFile
- Support for multipart/form-data in FormValueProviderFactory
- Updated Mvc Sample
- Added relevant unit and functional tests
2015-01-15 13:41:14 -08:00
Praburaj ad5cfb9e6e Reacting to namespace changes PipelineCore => Http.Core V2 2015-01-15 13:32:28 -08:00
Praburaj c9d0a4d9da Reacting to namespace changes PipelineCore => Http.Core 2015-01-15 13:27:17 -08:00
Kirthi Krishnamraju 6a824a4394 Added ModelMetadataType Attribute and logic to get attributes from ModelMetadata class 2015-01-15 13:19:10 -08:00
Praburaj 0f9173ecb0 Adding a Start up class for OpenIdConnect authentication 2015-01-15 13:16:37 -08:00
Chris Ross 9746a67990 Handle PipelineCore rename. 2015-01-15 12:45:07 -08:00
Chris Ross d43cf30eff #162 - Rename PipelineCore project to Http.Core. Part 2. 2015-01-15 12:37:34 -08:00
Pranav K 6641997836 Add support for `@removeTagHelpers` inheritance from _ViewStart files
Fixes #1657
2015-01-15 12:12:00 -08:00
Chris Ross 68be1d1b19 #162 - Change PipelineCore namespace to Http.Core. Part-1. 2015-01-15 11:52:34 -08:00
ASP.NET Push Bot 584901a038 ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@a0e0d95abc
2015-01-15 11:45:21 -08:00
ASP.NET Push Bot 9832f3444a ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@2c0f673023
2015-01-15 11:21:35 -08:00
Harsh Gupta 106b9fc30c Adding proper descriptions in readme.md files for functional tests. 2015-01-15 11:12:48 -08:00
ASP.NET Push Bot 33a238b11d ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@5ed15ec21e
2015-01-15 10:57:57 -08:00
Pranav K 123e649ee2 * Removing transitive dependencies from project.json
* Fix casing for project.json
2015-01-15 07:54:10 -08:00
Hao Kung 16a811479e Simplify HttpContextAccessor (now singleton) 2015-01-14 17:24:33 -08:00
Chris Ross 61bdaec1e2 Handle QueryBuilder namespace change. 2015-01-14 17:04:10 -08:00
Suhas Joshi b46bec1a7e Increase wait time for server to start 2015-01-14 16:09:07 -08:00
Chris Ross 5c189d87ad Prepend all links with ./. 2015-01-14 16:01:28 -08:00
Chris Ross 212c264ed3 Use strongly typed headers. 2015-01-14 16:01:25 -08:00
Chris Ross 91d7e382d1 Consume new strongly typed headers. Remove temp implementations. 2015-01-14 15:51:34 -08:00
Chris Ross 4fb21644fc Implement strongly typed headers. 2015-01-14 15:41:09 -08:00
Chris Ross 38fb911afc Clean up auth types, copywrite headers, file names, exceptions. 2015-01-14 15:13:24 -08:00
Chris Ross 91242245f3 Fix directory casing, part 2. 2015-01-14 14:54:47 -08:00
Chris Ross 8e6e7f9590 Fix directory casing, part1. 2015-01-14 14:53:51 -08:00
BrentSchmaltz 49e66f0311 Additions for OpenIdConnectMiddleware and OAuthBearer Beta1. 2015-01-14 14:50:45 -08:00
N. Taylor Mullen 8c47f6a67e Modify tests to account for new tag and attribute names for TagHelpers.
- Also added additional tests to validate new lower kebab casing.

#240
2015-01-13 22:51:20 -08:00
N. Taylor Mullen 2ad828f5bc Change TagHelper tag and attribute names to be lower kebab cased.
- Lower kebab casing is the HTML convention.

#240
2015-01-13 22:51:19 -08:00
N. Taylor Mullen 8529ea2f0d React to aspnet/Razor#240.
- Updated tests to account for new casing.
2015-01-13 22:35:43 -08:00
NTaylorMullen 4c20352e2a Updated test files to react to aspnet/Razor#260. 2015-01-13 21:32:05 -08:00
Praburaj 8864111f5b Increasing wait time out on mono tests
Right now since console logger is enabled there seems more delay in app start.
2015-01-13 16:28:54 -08:00
ASP.NET Push Bot 6f22c1434e ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@4ba740de9f
2015-01-13 14:55:51 -08:00
N. Taylor Mullen 2d2c2cdf0f Add warning disable for unused variable warnings for TagHelper fields.
- Added a 0414 warning disable/restore around the __tagHelperStringValueBuffer since it's the only TagHelper utility field that "may" never be used.
- Regenerated baselines for TagHelper test files.

#260
2015-01-13 14:44:22 -08:00
Praburaj cc38726ec8 LoggerExtensions can take in param objects[] instead of param string[] 2015-01-13 14:06:09 -08:00