Commit Graph

39185 Commits

Author SHA1 Message Date
Wei Wang 690069c53e Add project.lock.json to .gitignore 2015-02-16 12:12:36 -08:00
Wei Wang 20cdbcd711 Add project.lock.json to .gitignore 2015-02-16 12:07:04 -08:00
Pranav K 5e69d90076 * Modify DefaultControllerTypeProvider to look at the object graph to
determine if any ancestor has the "Controller" suffix.

* Introduce NonControllerAttribute to opt out of Controller detection.

Fixes #1274
2015-02-15 22:11:37 -08:00
Doug Bunting 8a9d0d16f7 Add project.lock.json to .gitignore 2015-02-15 09:56:35 -08:00
Pranav K 7df56f6d2d Porting Session from Microsoft.Framework.Cache 2015-02-14 09:50:08 -08:00
Praburaj 7b45ab2065 Fixing test
Using a non-redirecting handler while sending logout request to shield from external changes.
2015-02-13 16:58:53 -08:00
Praburaj 3fc61eeac9 Introducing SkipStatusCodePagesAttribute attribute to disable StatusCodepages 2015-02-13 16:03:59 -08:00
Pranav K d56dafe2e8 Use kpm-build to build samples instead of kpm pack 2015-02-13 15:46:02 -08:00
Doug Bunting 0549769fd0 Set `ModelMetadata.TemplateHint` based on data annotations
- add `CachedDataAnnotationsMetadataAttributes.UIHint`
- set `ModelMetadata.TemplateHint` using `UIHintAttribute` or `HiddenInputAttribute`
- add doc comments for `TemplateHint`-related properties and methods
- add unit tests and use these attributes in functional tests

nits:
- cache and seal `CachedModelMetadata.IsCollectionType`
- correct doc comments for `ModelMetadata.RealModelType`
- add doc comments for `IsCollectionType`-related properties and methods
- add doc comments for `IsComplexType`-related properties and methods
- move `CachedModelMetadata.IsComplexType` right below `IsCollectionType`
 - same for related fields and methods
2015-02-13 15:28:45 -08:00
Doug Bunting fbe331c1ab Camel-case tag helper directives
- #264
2015-02-13 15:10:37 -08:00
Praburaj d16a73cc05 Adding woff2 MIME type
Fixes : https://github.com/aspnet/StaticFiles/issues/28
2015-02-13 15:03:16 -08:00
ajcvickers 66252ff736 React to EF namespace change 2015-02-13 14:56:28 -08:00
Levi B fc52487294 Encoders should forbid Zs (space separator) characters except U+0020 SPACE 2015-02-13 14:12:40 -08:00
N. Taylor Mullen e14dbdf9be Add parser error for empty TagHelper bound attributes.
- Errors are only created for TagHelper bound attributes that are not bound to string.
- Added tests to validate proper errors for expected input.

#289
2015-02-13 12:10:50 -08:00
Doug Bunting 451db6fb16 React to aspnet/Razor#164: Camel-case tag helper directives 2015-02-13 12:07:21 -08:00
Youngjune Hong 2e2ca59aa5 Updating MusicStore for better unit-testability 2015-02-13 11:51:46 -08:00
Ajay Bhargav Baaskaran 088bb18eed Added support for binding FormCollection
- Added FormCollectionModelBinder
 - Added relevant unit and functional tests
2015-02-13 11:14:50 -08:00
dtkujawski 5a5975e348 Removed Ctor, Cleaned up namespace and removed extra vertical spacing as per comments. 2015-02-13 11:47:42 -06:00
David Kujawski b94634b4fa Merge pull request #1 from aspnet/dev
Update with recent changes from aspnet/Hosting
2015-02-13 11:36:30 -06:00
Pranav K a33e83f363 Adding IView.Path and ViewContext.ExecutingPagePath
Fixes #1940
2015-02-13 06:12:15 -08:00
Troy Dai daaeca8681 Skip a few CoreCLR tests temporarily 2015-02-13 00:27:07 -08:00
Pranav K 29c346ebf8 Remove do-deep-clean and rely on Universe to clean on build on the CI 2015-02-12 22:21:34 -08:00
Pranav K 77947d1cb5 Fixing System.IO version 2015-02-12 22:20:28 -08:00
dtkujawski e95472e953 Switch from tabs to spaces 2015-02-12 23:45:26 -06:00
Doug Bunting 3ced6016a1 Deep copy user's select list before making changes
- #524
- add tests of `DropDownList` and `ListBox` HTML helpers
- extend tests of `<select/>` tag helper
- add scenario to a functional test

New `HtmlHelperSelectTest` does not cover everything. In future (see #453):
- use non-`null` `optionLabel` and `htmlAttributes` arguments
- confirm value sources and their priorities
- mock an `IHtmlGenerator` and confirm how it is called
- mock an `IHtmlHelper` and confirm how extension methods call that
2015-02-12 20:56:53 -08:00
Pranav K 15be6edf6a Temporarily skipping failing tests 2015-02-12 18:37:59 -08:00
Pranav K e78dadcf0a Reacting to EF renames 2015-02-12 17:47:27 -08:00
Pranav K 0cd3d3767e Deep clean on the CI as part of clean 2015-02-12 17:07:58 -08:00
Pranav K 70517d64a8 * Update pull-all to perform pull in parallel
* Fix formatting for pull
2015-02-12 17:02:08 -08:00
Pranav K 66b98e2ff3 Reacting to IServiceManifest namespace rename 2015-02-12 16:05:09 -08:00
Brice Lambson a48f76da7c Update IServiceProvider references 2015-02-12 15:48:49 -08:00
dtkujawski fe3675a9e0 Ability to derive Startup from a base class and have "Configure" and "ConfigureServices" be invoked from the base class when present. 2015-02-12 17:40:14 -06:00
Pranav K 0d1b35b6ec Run deep-clean on the CI prior to building 2015-02-12 14:58:19 -08:00
Pranav K 2169ba0c8f Reacting to ANIs going away 2015-02-12 14:52:17 -08:00
Pranav K 5038c369db Using IServiceManifest from Microsoft.Framework.Runtime.Interfaces 2015-02-12 14:44:38 -08:00
Brice Lambson 057959a786 Remove assembly-neutral interfaces 2015-02-12 13:35:27 -08:00
Levi B 0dd3a49463 Perf: Eliminate chatty virtual dispatches
This gives a speedup of approx. 20% (for overloads which take TextWriter) to 40% (for overloads which don't take TextWriter) for inputs in which at least one character requires encoding.
2015-02-12 11:44:11 -08:00
Praburaj f243244972 Adding ability to turn off the status code pages
Added a feature named IStatusCodeFeature with an enabled property. MVC or any framework can get this feature and turn it off if
it does not want status code pages logic to take over and send HTML response.

Also refactored the sample flow to make it easier to understand.
2015-02-12 11:09:47 -08:00
Pranav K 26cd8d51b6 Removing ANIs 2015-02-12 09:07:47 -08:00
Doug Bunting ca65b1b6ed Correct recent checkins
- correct typo in 3303286288
 - really seal `CachedModelMetadata.Properties`
- make a couple of test methods `public` (!!)
- add Microsoft.AspNet.PageExecutionInstrumentation to Mvc.sln
- remove `<RootNamespace/>`, `<ProjectExtensions/>`, etc. from .kproj files
2015-02-12 08:53:17 -08:00
Hao Kung cd0acd7a47 API Review cleanup #1
- Remove constructor defaults
- Make service properties internal
- Add Logging/HttpContextAccessor services which are required by
identity
2015-02-12 02:21:33 -08:00
Pranav K 5ed0638402 Move PageExecutionListener interfaces to a separate assembly. 2015-02-11 18:06:20 -08:00
Pranav K f89c716dba Fixing build break 2015-02-11 17:54:04 -08:00
Levi B e5c6fd401f Add TextWriter-based overloads to the encoding routines
These make the core implementations slightly slower but
provide the benefit of reducing allocations, which is
useful when these methods are called frequently by Razor.
2015-02-11 17:49:37 -08:00
Ajay Bhargav Baaskaran 13e1c9d5e1 added InputFormatter base type 2015-02-11 16:48:56 -08:00
Pranav K e1e43e1e8c ControllerActivator should be able to use controllers registered as
services

* Added WithControllersFromServiceProvider that replaces the default
  controller activator with a service based one.
* Move activation to DefaultControllerFactory
* Modify [Activate] behavior so that it no longer activates services. Use
  [FromService] attribute to hydrate services

Fixes #1707
2015-02-11 16:41:59 -08:00
Ryan Nowak 7cb6c1065c Fix for #1913 - Improve attribute route link generation for areas
Attribute route link generation will now have a slight preference for
entries that can use ambient values (vs ignoring an ambient value). This
means that areas will be more 'sticky' with regard to link generation
without the need to specify a better Order.
2015-02-11 15:59:48 -08:00
Ryan Nowak 1721d90065 Fixes for changes in routing
Routing now requires the RouteOptions in the service provider.
2015-02-11 15:58:47 -08:00
Doug Bunting 731722ae36 Add `deep-clean` to `verify` target
- help CI machines with directory cleanup
- this target is not normally used except on CI machines
2015-02-11 14:45:22 -08:00
Ryan Nowak 9ee946073a Add support for best-effort link-generation
This change adds a feature needed for aspnet/Mvc#302

There's a new option in routing that allows link-generation to proceed
when the route values cannot be validated. The key scenario for this is
during development of an MVC site. Routing will refuse to generate a link
to actions which don't exists, this is a breaking change from the MVC5
behavior. Setting UseBestEffortLinkGeneration will allow routing to return
a value even when we can't match the action.

This option will remain off by default - setting this to on will impact
link-generation in a bunch of scenarios involving areas where we've
improved the logic for MVC6. If you're considering leaving this on outside
of development scenarios, then make sure to be as explicit with route values
as possible (don't rely on ambient values).

Functional tests to follow up in the MVC repo.
2015-02-11 14:38:30 -08:00