Commit Graph

39740 Commits

Author SHA1 Message Date
David Fowler 8d6684ab09 Renamed Project.json to Project.json2 2014-10-04 02:52:07 -07:00
jacalvar 8802c831a0 [Fixes #1155] Added functional tests to cover common versioning scenarios. 2014-10-03 19:00:24 -07:00
Ryan Nowak 78a4e78358 Fix for #975 - Implementing IActionConstraint and ActionMethodSelectorAttribute
IActionConstraint follows a provider model similar to filters. The
attributes that go on actions/controllers can be simple metadata markers,
the 'real' constraint is provided by a set of configurable providers. In
general the simplest thing to do is to be both an
IActionConstraintMetadata and IActionConstraint, and then the default
provider will take care of you.

IActionConstraint now has stages based on the Order property. Each group
of constraints with the same Order will run together on the set of
actions. This process is repeated for each value of Order until we run out
of actions or run out of constraints.

The IActionConstraint interface is beefier than the equivalent in legacy
MVC. This is to support cooperative coding between sets of constraints
that know about each other. See the changes in the sample, which implement
webapi-style overloading.
2014-10-03 18:50:01 -07:00
sornaks 0d8a7368d9 Issue #1141 - When Accept header or Accept-Charset header has invalid QualityFactor we throw.
Fix: Imitating the same behavior as it is in WebApi. We ignore the entire header even if one part of it is invalid.
2014-10-03 16:25:51 -07:00
harshgMSFT 572ec0175c Fix for 1071: Output Formatters should be invoked for writing out the response. 2014-10-03 10:54:59 -07:00
David Fowler f076fc7dcf React to roslyn changes 2014-10-03 03:23:04 -07:00
Doug Bunting 0d92a829ff Correct minor problem in `CachedDataAnnotationsModelMetadata.ComputeDisplayFormatString()`
- only affects an extreme corner case: user sets `metadata.EditFormatString` then reads
  `metadata.DisplayFormatString`
- an extreme case because `EditFormatString` is normally set only when
  `DisplayFormatString` is set and, if set, it's to the same value
- happened to see this while updating `CachedDataAnnotationsModelMetadata` for this PR

nit: an -> a in an adjacent XML comment in `CachedDataAnnotationsModelMetadata`
2014-10-02 19:13:45 -07:00
Doug Bunting a5600a74a3 Calculate `ModelMetadata.DataTypeName` based on metadata
- helps MVC helpers like `@Html.EditorFor()` select the correct template
- #933

nit: add XML doc for `DataTypeName` in base `ModelMetadata`
2014-10-02 19:13:35 -07:00
Pranav K 12477c9f52 Changes to make EnableInstrumentation conditionally enabled 2014-10-02 17:55:40 -07:00
Pranav K 5d32d224f4 Changes to support PageExecutionContext in Razor
Fixes #1083
2014-10-02 17:55:23 -07:00
Chris Ross 8bbf5db1ac #69 - Make WebListener target Net45. 2014-10-02 15:51:30 -07:00
Praburaj 424de094f3 Removing the single line comment in a project.json 2014-10-02 13:20:58 -07:00
jacalvar a2023d35ee [Fixes #429] FileResult
1) Implemented FilePathResult to efficiently return files from disk.
2) Implemented FileStreamResult to return content from a stream.
3) Implemented FileContentResult to return content from a byte array.
2014-10-02 12:50:24 -07:00
Praburaj 0288c790b0 Cleanup
1. Moving framework assembly references to frameworkassemblies node.
Moving the framework references Removing the RunOnMono flag on Ntlm tests as it never runs on mono
2. Deleted a space from the batch file
3. Adding some pack-exclude items
4. Some general test cleanup.
2014-10-02 12:38:54 -07:00
Chris Ross 0f9ac1f84f #52 - Set a default user-agent for the OAuth backchannel. 2014-10-02 12:05:35 -07:00
Pranav K 2f00fc6121 Modifying test project.json to allow building on Mono 2014-10-02 12:05:03 -07:00
YishaiGalatzer 9de86892a7 Cleanup namespaces and Task.FromResult 2014-10-02 11:49:44 -07:00
Ryan Nowak 414c009b80 Removing Overloading and Automatic verb-mapping
This change removes WebAPI-style method parameter overloading and the
automatic mapping of 'unnamed' actions based on method names. For all
practicaly purposes, this change restores the MVC5 behavior for action
selection.

WebAPI-style overloading will be brought back in the future via a set of
opt-in constructs.
2014-10-01 18:46:48 -07:00
Pranav K fee3b3cc6c Reacting to Razor changes 2014-10-01 17:47:21 -07:00
Pranav K f913d8929f Updating CSharpCodeVisitor to generate implicit expressions on a single
line

Fixing 151
2014-10-01 17:20:00 -07:00
Pranav K ad8ab4b8fd Adding support for ViewLocationExpanders to allow modifying view locations
without changing the view engine.

Fixes #1039
2014-10-01 16:15:25 -07:00
Victor Hurdugaci 0c3f7eab9e Runtime information page 2014-10-01 15:20:44 -07:00
jhawk42 4350866536 change-to-libraryloader-l1-1-0 2014-10-01 15:18:52 -07:00
jhawk42 47f0699235 Win7PlusCoreSystem 2014-10-01 14:57:08 -07:00
Pranav K c6357bd2f6 Removing declaration expressions 2014-10-01 14:51:46 -07:00
Pranav K 43cdd54c16 Removing declaration expressions 2014-10-01 14:47:27 -07:00
Pranav K 7574378d37 Removing declaration expressions 2014-10-01 14:45:04 -07:00
Pranav K a4fff7a2e0 Removing declaration expressions 2014-10-01 14:41:13 -07:00
Pranav K e5f157565c Removing out var usage 2014-10-01 14:33:14 -07:00
Pranav K 38e085e3ef Removing out var usage 2014-10-01 14:26:20 -07:00
Ryan Nowak d8995a7767 Fix for #1192 - Support customizing reflected model through attributes
This adds support for attributes which interact with reflected model.
These conventions are applied after all of our built-in constructs so that
you can see and modify the results.
2014-10-01 14:15:34 -07:00
Praburaj 970418448c Passing in request cancellation tokens to all async methods
Changing to use some of EF's async APIs.
2014-10-01 12:06:39 -07:00
Pranav K 6c49d0b40e Updating SyncAction_WithException to not test for exception message
Skipping PropertyHelper_WorksForStruct on Mono until further
investigation.
2014-10-01 11:53:21 -07:00
Pranav K 7b5a97d04e Updating TokenProviderTests to use GetAuthenticatedIdentity instead of creating GenericIdentity 2014-10-01 11:35:43 -07:00
Pranav K a8cb9916aa Updating build.sh to latest 2014-10-01 11:10:15 -07:00
Pranav K 4b56fe157d Fixing build break 2014-10-01 11:01:11 -07:00
Pranav K ecb16db58e Remove and sort usings and fixing formatting 2014-10-01 10:28:54 -07:00
Pranav K 28b4ca9a62 Updating build.sh 2014-10-01 10:21:04 -07:00
Pranav K 38e82c0aa5 Updating Microsoft.AspNet.Mvc.Core.Test to work on Mono 2014-10-01 10:05:36 -07:00
Kiran Challa 1c8582d77a [Fixes #1183] Response uses chunked encoding when returning a string 2014-10-01 07:23:11 -07:00
Pranav K 3cd5c17da7 Updating ModelBinding tests to work in Mono 2014-09-30 20:16:21 -07:00
YishaiGalatzer 497274a404 Remove usings 2014-09-30 19:26:02 -07:00
YishaiGalatzer 0ddcd54988 Update razor precompilation diagnostics:
consistently add razor errors to diagnostics.

This will start producing proper errors with line numbers when Roslyn updates the default diagnostics formatter.
2014-09-30 16:43:29 -07:00
Pranav K f33eec4845 Updating MvcRazorHost to use overload that generates pragma checksum
Fixes #1152
2014-09-30 12:54:15 -07:00
YishaiGalatzer f82516d155 Fix issue https://github.com/aspnet/Mvc/issues/1202 2014-09-30 12:47:03 -07:00
Pranav K 038b8c7f19 Commonizing Razor Host tests 2014-09-30 12:18:21 -07:00
DamianEdwards 9a8f003cd0 Updated attribute routes in MusicStore.Spa
- Also unbound grunt tasks as it causes issues on launch
2014-09-30 11:58:51 -07:00
sornaks 3d5f4a2bfd Issue #985: Adding Functional Tests for ViewComponent Activators. 2014-09-30 10:49:30 -07:00
David Fowler dfea4ee8a5 Updated kvm build 2014-09-30 10:03:29 -07:00
YishaiGalatzer 6a886d39ab Add razor parser errors to show up 2014-09-29 18:57:08 -07:00