Go to file
Ryan Nowak 8ce069f56a [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller
1. Updated ViewComponent to exposes similar properties to the existing ones in controller where
appropiate. We've left out Resolver for being a bad pattern (just inject the dependency on the constructor
or use Context.RequestServices to access it if needed) and Response as although available through the Context
property, it shouldn't be used/modified in a ViewComponent.

2. Updated ViewViewComponentResult to follow a similar pattern as ViewResult where the constructor is
parameterless and elements like ViewEngine are resolved during execution if the user does not set the
associated property on the object.

3. Updated ExecuteAsync in JsonViewComponentResult to remove the unnecessary pragma and async keyword from the
signature and to use Task.FromResult(true) instead.

4. Cleaned up ViewViewComponentResult tests.
2014-11-26 15:56:06 -08:00
samples matched classnames with filenames 2014-11-25 11:21:17 -08:00
src [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller 2014-11-26 15:56:06 -08:00
test [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller 2014-11-26 15:56:06 -08:00
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln
Mvc.sln Fix for #1447 - Adding functional tests that verify per-request services 2014-11-17 18:38:49 -08:00
NuGet.Config
README.md
Settings.StyleCop
build.cmd
build.sh
global.json
makefile.shade

README.md

ASP.NET MVC

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET vNext includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.