Ryan Nowak
7ed2de297e
moving global filters to options
2014-09-15 15:34:45 -07:00
David Fowler
18400481b5
Cleaned up the mvc sample
...
- Removed unnecessary dependencies
- Removed web.config
- Use overload of UseServices that automatically adds options
2014-09-15 09:51:00 -07:00
Chris Ross
85ad1aeb96
Handle IBuilder rename to IApplicationBuilder.
2014-09-10 14:12:08 -07:00
YishaiGalatzer
8fd7cd51e2
Fix the sample to await when writing directly to the output stream in a controller.
2014-09-09 08:39:44 -07:00
sornaks
28e334d3db
Issue #668 : Sample should be covered by a basic functional test.
2014-09-04 14:07:46 -07:00
David Fowler
34add2249e
Updated to use the new target framework in project.json
2014-09-04 02:02:40 -07:00
Pranav K
a931e21456
Adding support for flush points in Razor pages
...
Fixes #1042
2014-08-29 09:30:23 -07:00
David Fowler
2e6e5307f6
Updated to use the new target framework in project.json
2014-08-28 22:14:10 -07:00
YishaiGalatzer
e40dbcaebf
Prevent flushing when writing out from the formatters.
...
Also make the XML formatter respect object as a return type.
Issues: MVC/1073, MVC/972, MVC/958
1072 is a followup work item to add test coverage.
2014-08-28 14:15:07 -07:00
harshgMSFT
944fafb589
Fixing sample
2014-08-17 01:34:13 -07:00
David Fowler
fa6b3acc4a
Removed source files from the project
2014-08-15 09:14:49 -07:00
Javier Calvarro Nelson
3ab0c3af29
[Issue #733 ] Attribute Routing: Implement Order
...
1. Added an Order property to IRouteTemplateProvider, ReflectedAttributeRouteModel,
AttributeRouteInfo, AttributeRouteLinkGenerationEntry and AttributeRouteMatchingEntry.
2. Changed the implementation of AttributeRoute to take the order into account when routing
incomming requests and generating links.
3. Ensured a stable ordering of route entries with the same order and precedence for route
matching and link generation based on the template text.
4. Added tests to validate that the precedence gets respected in route matching and link generation.
5. Added tests to validate that the order gets respected in route matching and link generation.
6. Added tests to validate that the order gets respected over the precedence for route matching
and link generation.
7. Added tests to validate that routes with the same order and precedence expose a stable ordering
for route matching and link generation.
2014-08-14 11:21:05 -07:00
harshgMSFT
6ee034e64f
ProducesAttribute +
...
Adding Functional Tests
Conflicts:
src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatter.cs
src/Microsoft.AspNet.Mvc.Core/Resources.resx
src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/project.json
test/Microsoft.AspNet.Mvc.FunctionalTests/project.json
Adding Resources + tests
Conflicts:
src/Microsoft.AspNet.Mvc.Core/Properties/Resources.Designer.cs
src/Microsoft.AspNet.Mvc.Core/Resources.resx
Adding produces content Attribute
Conflicts:
src/Microsoft.AspNet.Mvc.Core/Microsoft.AspNet.Mvc.Core.kproj
Conflicts:
src/Microsoft.AspNet.Mvc.Core/Microsoft.AspNet.Mvc.Core.kproj
test/Microsoft.AspNet.Mvc.Core.Test/Microsoft.AspNet.Mvc.Core.Test.kproj
2014-08-11 17:52:55 -07:00
harshgMSFT
927821a8ac
Data Token support changes
2014-08-11 11:38:10 -07:00
dougbu
56d66c090e
Make HTML helper `null` handling consistent
...
- #874 lines 3, 4, and 6
- correct `Value()` to treat a `null` expression name the same as `string.Empty`
- add missing `[NotNull]` attributes in `EditorExtensions` and for `GenerateIdFromName()`
- consistently pass `null` for default expression names to the helpers
- for example, from extension methods
- add test cases using `null` for expression name
nits:
- correct summary XML comment for `HtmlHelper` class
- use named parameters and prefer interface (not extension) methods in changed calls
- use `string.Empty` instead of `""` in a few tests
2014-08-06 16:04:56 -07:00
Ryan Nowak
2987f98283
Adding parameter replacement
2014-07-29 16:14:57 -07:00
Javier Calvarro Nelson
b0d52f73fd
[Issue #527 ] Revive common ActionResults - Part 1.
...
1. Added HttpNotFound() to Controller.
2. Updated HttpStatusCodeResult to expose the StatusCode as a property.
3. Added unit tests for HttpNotFound() and for HttpStatusCodeResult.
4. Updated the MvcSample to add an action that uses HttpNotFound().
5. Brought back HttpNotFoundResult and added unit tests for it.
2014-07-25 13:04:59 -07:00
Pranav K
e28adbfb3d
ViewStarts need to be executed as part of View execution
...
Fixes #834
2014-07-23 16:45:25 -07:00
Ryan Nowak
745239f09f
Adding Attribute Routing Link Generation
2014-07-21 14:52:38 -07:00
David Fowler
7e7c56ce48
Renamed configurations to frameworks in project.json
2014-07-13 21:58:12 -07:00
Chris Ross
240d969899
Add using statement for extension methods.
2014-07-08 10:19:16 -07:00
tugberkugurlu
8e0876e440
sorted dependencies corrctly on sample
2014-07-07 22:21:35 +03:00
tugberkugurlu
b855b69e5a
added Microsoft.AspNet.StaticFiles package to be able to serve static files for the sample
2014-07-04 12:04:34 +03:00
Ryan Nowak
e396f1b451
Adding attribute routing
2014-07-03 18:53:38 -07:00
dougbu
2bfc3e32e9
Merge branch 'release' into dev
2014-06-23 15:45:03 -07:00
dougbu
0c6749a5e7
Catch MVC up with Helios rename
...
- allows builds to succeed after cleaning your repo (without NuGet.org source)
2014-06-23 14:05:47 -07:00
Pranav K
cca78bb055
Adding support for ActivateAttribute via IControllerActivator
...
This mechanism replaces code in Inject that activated properties
by looking them up by names.
2014-06-23 11:00:28 -07:00
Brice Lambson
172dcd179b
Bump version to 6.0.0-*
2014-06-19 11:21:43 -07:00
Yishai Galatzer
6aa1f84420
Add Service monitoring as middleware to make sure the monitoring doesn't affect autofac services counts
...
Scoping of three services
Caching of action binding context.
Make input formatters lazy
2014-06-16 19:03:30 -07:00
Ryan Nowak
d79943d30f
Fixing issues build/project issues that someone else missed.
2014-06-16 13:26:49 -07:00
harshgMSFT
10285d7d39
This additional constraint enables adding a route to the template (and potentially to the UseMvc method) without actually implementing the actual artifact.
...
For example without adding an area to a controller, a route can still be added to the template.
- Also added functional tests.
2014-06-16 11:24:22 -07:00
Tian Pan
e95585dfbd
Remove ActionResultHelper
...
Fix #597
2014-06-11 11:17:45 -07:00
sornaks
28516a0ae9
Changes to support DisplayColumn attribute. Updating the MvcSample as well to start using DisplayColumn attribute. Adding UnitTests for the same.
2014-06-10 16:45:55 -07:00
Yishai Galatzer
95aa6ad607
Add AutoFac to the MVC sample
2014-06-09 15:00:40 -07:00
Pranav K
59e419ba0a
Adding support for @Inject to Mvc
2014-06-09 13:43:08 -07:00
sornaks
6b836e9e77
Introducing ChallengeResult to call Response.Challenge()
2014-06-06 10:31:18 -07:00
Tian Pan
a6d89c4482
Copy CodePlex #1836 and #1878 fixes over ( Fix #296 ).
...
This change enables user to specify the tag for the wrapping HTML element
generated from ValidationSummary() and ValidationMessage[For]().
Clean up HtmlHelperValidationExtensions.
2014-06-03 00:18:47 -07:00
Tian Pan
6082cd9f36
View components - More built in return methods ( Fix #354 )
...
Modify Content/Json/View return type as strongly-typed.
2014-06-02 23:12:42 -07:00
sornaks
52c2e41bbb
Adding default values to MvcSample.Web's FiltersController. Otherwise accessing the Actions would return 404 by default.
2014-05-28 11:04:14 -07:00
David Fowler
7388dece9f
Fixed project.json casing
2014-05-26 02:50:43 -07:00
Pranav K
a53e378cf4
Updating kproj file to match tooling changes
2014-05-18 20:13:56 -07:00
Sebastien Ros
630bf3cc5e
Fixing project file
2014-05-12 14:52:41 -07:00
Ryan Nowak
b9dbb6fe57
Fixing action selection with complex types - MVC scenarios with more than one parameter are broken right now
2014-05-09 18:08:54 -07:00
harshgMSFT
00c30791ea
Fixing LinkController in the sample
2014-05-09 16:09:51 -07:00
dougbu
0b327ba7b4
Use `BeginForm()` in MVC sample
2014-05-09 10:40:56 -07:00
David Fowler
ade41533f1
Updated the Startup
2014-05-09 00:48:26 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Wei Wang
7b2feab670
Sort dependencies and remove duplicates in dependencies
2014-05-07 18:24:04 -07:00
lajones
235707ec8a
Microsoft.ComponentModel.DataAnnotations is being renamed to Microsoft.DataAnnotations
2014-05-07 13:35:36 -07:00
Pranav K
076dedcca5
Reacting to package and namespace changes
2014-05-06 14:06:29 -07:00