Commit Graph

40803 Commits

Author SHA1 Message Date
Pranav K f1c4a8e497 Change FormValueProviderFactory to use GetContentType for media type matching
Fixes #68
2014-03-21 12:10:12 -07:00
Ryan Nowak 1ca2203421 cr feedback 2014-03-21 11:13:15 -07:00
Ryan Nowak 6610788b75 Restore the TextWriter to ViewContext 2014-03-21 11:13:14 -07:00
Pranav K 8ea196023e Modify controller discovery to only look for types that reference Mvc.Core
assembly
2014-03-21 10:02:54 -07:00
Chris Ross 9a4678d40f Change config order. 2014-03-20 21:14:22 -07:00
Chris Ross 982cf2a1d6 Code review cleanup. 2014-03-20 21:14:20 -07:00
Chris Ross 11762840cd Add an Initialize step to IServerFactory. 2014-03-20 21:14:18 -07:00
Pranav K 683c5bf9b3 Adding JsonInputFormatter for reading json encoded data from the request
body
2014-03-20 20:48:25 -07:00
dougbu 4364986137 System.Text.Encoding has rev'd 2014-03-20 14:38:54 -07:00
Ryan Nowak c4a15f021f Passing additional data on the ViewContext for resolving views.
This will be necessary for partials, and for Components.

Basically, the view engine uses a dictionary of data to find the top level
view (for an action) - after we do that, we want this context to be
sticky, which means we need to pass it around. This ensures that partials
and components will be resolved under the same paths as the main view.

Currently this 'data' is just the route values - and there is an ongoing
discussing about the right design here. The data that's being passed WILL
change in the future.
2014-03-20 12:18:02 -07:00
Chris Ross 2c49d89094 Code review cleanup. 2014-03-20 11:19:42 -07:00
Yishai Galatzer 8b6d39507d Feedback: Make common base class for all contexts and all of them expose FilterItem collection
ExtensionMethod will now apply to the base FilterContext class
2014-03-20 09:59:24 -07:00
Yishai Galatzer adffc95b81 AllowAnonymous attribute + Consumption + Sample 2014-03-20 09:59:24 -07:00
Hao Kung c4d32ef1d6 Remove ConfigureAwait(false) everywhere 2014-03-20 09:42:52 -07:00
dougbu 5875452755 Quick fix-ups
- Move .NET test projects back into net45 folder
- Catch up with latest System.Runtime.InteropServices version
2014-03-19 23:41:17 -07:00
Yishai Galatzer dcc286a299 Refactor FindView to always take a viewName (no null support)
and only use RouteValues (or generically just Dictionary<string, object>).

This is temporary and will change once we get Partials (which are currently just dead code)

For now this will unblock ViewComponents
2014-03-19 18:48:36 -07:00
Louis DeJardin ff19628832 Removing the temporary use of thread static 2014-03-19 18:15:58 -07:00
Louis DeJardin 951e8df893 Making core clr friendly 2014-03-19 18:15:50 -07:00
Louis DeJardin 7b038d4e31 Adding standard implementation of IContextAccessor<> 2014-03-19 18:13:03 -07:00
Louis DeJardin c39a41bd9f Adding UseContainer middleware
Assigns values to HttpContext.ApplicationServices and
HttpContext.RequestServices as call passes through
2014-03-19 18:13:02 -07:00
Pranav K f8dd52dfe3 Reintroducing BindingBehaviorAttribute attribute
* Porting MutableObjectModelBinder tests
* Fix issues in MutableObjectModelBinder introduced by changing from
  TypeDescriptors to reflection
2014-03-19 16:52:02 -07:00
Hao Kung 5e36691909 Port ClaimsIdentityFactory and more tests 2014-03-19 15:08:43 -07:00
Chris Ross 951dcbebb7 Add IServerInformation to IBuilder. 2014-03-19 11:35:24 -07:00
harshgMSFT 9cd99a42a7 ActionExecutor implementation WebFx W113
The changes include:
1. Action executor changes required for supporting sync and async operations Taksk and Task
2. Adding test project for MVC core - This contains ActionExecutor Tests.
3. Also adding a resources file for MVC core project
2014-03-19 11:10:42 -07:00
dougbu 4bc7c36522 Merge two `TypeExtensions` classes into Common\TypeExtensions.cs
- add missing `[NotNull]` attributes
- remove now-unneeded usings for ...ModelBinding.Internal namespace

Also get ModelBinding test project working under CoreCLR
- create separate k10 and net45 folders under test in VS
- add `[InternalsVisibleTo]` to make `TypeExtensions` visible to test assembly
- correct tests' `CultureInfo` use to compile under CoreCLR
- ifdef out CoreCLR tests depending on Moq, ReadOnly, ...
- remove a couple of tests expecting TypeConverter to work
2014-03-19 09:53:40 -07:00
Yishai Galatzer 227121b3f9 CR Feedback 2014-03-19 09:26:20 -07:00
Yishai Galatzer 7d9a6297f9 Fix debug string 2014-03-19 09:26:19 -07:00
Yishai Galatzer cfb06c0de3 Areas feature - Phase I
1. Areas defined by the Area attribute
2. Areas are a routeconstraint on the actiondescriptor
3. Areas find pages through route values

Other changes:
1. Remove Path from ActionDescriptor - It doesn't make sense with this change
2. Add sample Area
2014-03-19 09:26:18 -07:00
Chris Ross f2835e7185 Rename IResponseCookiesCollection to IResponseCookies. 2014-03-19 09:12:42 -07:00
Chris Ross 732ae3d030 Code review cleanup. 2014-03-19 09:12:29 -07:00
Chris Ross b9899fc72a Fix response cookies namespace. 2014-03-19 09:12:27 -07:00
Chris Ross bc43ccbc30 Change QueryString to include the leading '?'. 2014-03-19 09:12:25 -07:00
Chris Ross fc8832f69f Add Claims dependency. 2014-03-19 09:12:23 -07:00
Chris Ross cbd8401582 Fill in OnSendingHeaders, Redirect, IsSecure. 2014-03-19 09:12:21 -07:00
Chris Ross ae9545a124 Improve request and response cookie handling. 2014-03-19 09:12:18 -07:00
Pranav K 072e2cc1f1 Updating DataAnnotations version in project.json 2014-03-18 20:56:08 -07:00
Pranav K eae9d3a951 Update GenericModelBinder.BindModel to use correct overload of
Activator.CreateInstance
2014-03-18 16:34:18 -07:00
Ryan Nowak db7b068f6b Added back K10 version of the routing sample to the sln 2014-03-18 16:25:44 -07:00
David Fowler fc3a76d63d Clean up project.json file
- Removed unused dependencies
2014-03-18 16:21:51 -07:00
David Fowler 707a563e08 Remove hacky self host sample and replace with helios sample. 2014-03-18 16:21:50 -07:00
Stephen Halter aa0b52df4e ServiceCollection.FallbackServices no longer exists
- Pass the fallback service provider to BuildServiceProvider instead
2014-03-18 15:04:49 -07:00
dougbu 3a0add8be8 Cleanup pass: Move Rendering classes to correct namespace
- use Microsoft.AspNet.Mvc.Rendering namespace throughout assembly

Also
- move `IdAttributeDotReplacement` from `TagBuilder` to `HtmlHelper`
- remove commented-out code in `HtmlHelper`
- use `var` and `[NotNull]` more
- `String` -> `string`
- correct Resources references; add missing resources
2014-03-18 14:02:39 -07:00
N. Taylor Mullen 4cfef3c6d1 Add tests to verify flexibility of await keyword.
Added sample files to evaluate accuracy of generated code for the await keyword.  Also added a line mapping test to ensure that we're mapping the keyword correctly.
2014-03-18 12:37:16 -07:00
N. Taylor Mullen 50314ca7e5 Add the ability for users to await expressions.
This enabled things like @await Foo().  We special case the await keyword and allow another snippet of code to follow it.
2014-03-18 12:37:07 -07:00
GrabYourPitchforks ea1f93aa91 Fix bad call to Assembly.GetType in Hosting.
CR: chrross
2014-03-18 11:49:41 -07:00
Hao Kung 7adb28a460 Cleanup + more unit tests (Core @ 81%) 2014-03-18 11:26:02 -07:00
dougbu 478c220ddb Revert "Merge two `TypeExtensions` classes into Common\TypeExtensions.cs"
This reverts commit d534471515.
2014-03-17 22:53:36 -07:00
dougbu f714425619 Revert "Address CR comments"
This reverts commit d815329f71.
2014-03-17 22:52:39 -07:00
dougbu d815329f71 Address CR comments
- reduce #if use
- remove outdated comment
2014-03-17 22:49:30 -07:00
Louis DeJardin ca2ef860f5 Adding IServiceProvider interfaces to HttpContext 2014-03-17 21:42:35 -07:00