N. Taylor Mullen
b39f4dfe29
React to razor tooling rename.
2016-02-19 15:05:37 -08:00
Kiran Challa
fd3ee49987
[ Fixes #4085 ] Controller helper inconsistency: HttpNotFound(), Ok()
2016-02-19 09:25:04 -08:00
jacalvar
65858b8d8b
[ Fixes #4051 ] Split OutputFormatter into OutputFormatter and TextOutputFormatter
2016-02-12 12:04:18 -08:00
Cesar Blum Silveira
50fc0bb140
Reference Microsoft.NETCore.Platforms where necessary.
2016-02-02 14:22:07 -08:00
Doug Bunting
7446cec516
Update `TagHelperSampleTest` to avoid failures due to statefulness of the service
...
- have one test muted at the moment in our CI
- add `Reset()` action to the service, enabling `// Arrange` to bring `Index()` content to a known state
- add a couple more tests to `TagHelperSampleTest` covering the new action and empty `Index()` list
nits:
- use `ViewData`, not `ViewBag`
2016-01-26 10:50:51 -08:00
N. Taylor Mullen
25eb50120e
Update ASP.NET 5 versions for ASP.NET Core.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:40:26 -08:00
N. Taylor Mullen
3be7fbdf9f
Rename AspNet 5 file contents.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:18:33 -08:00
Brennan
8765a06b69
React to Fileprovider namespace changes
2016-01-21 17:45:06 -08:00
Ryan Nowak
dd952d8d70
Move some types to .Internal namespace
2016-01-21 10:56:38 -08:00
John Luo
249673f2bc
Reacting to hosting rename
2016-01-17 18:13:26 -08:00
Ryan Nowak
420f442487
Fixes #3818 - Support Consumes in ApiExplorer
...
This change adds a list of ApiRequestFormat objects to ApiDescription
object which include the content type and formatter for each supported
content type which can be understood by the action.
Computation is aware of the [Consumes] attribute via the
IApiRequestMetadataProvider metadata interface, and aware of Input
Formatters via the new IApiRequestFormatMetadataProvider interface.
This algorithm is essentially the same as what we do for
produces/output-formatters. We iterate the filters and ask them what
content types they think are supported. Then we cross check that list with
the formatters, and ask them which from that list are supported. If no
[Consumes] filters are used, the formatters will include everything they
support by default.
This feature and data is only available when an action has a [FromBody]
parameter, which will naturally exclude actions that handle GET or DELETE
and don't process the body.
2016-01-13 12:32:17 -08:00
Ryan Nowak
70cee90186
Add optional filter caching
2016-01-13 09:11:08 -08:00
John Luo
c5cab7a786
Reacting to hosting API changes
2016-01-12 18:07:17 -08:00
Pranav K
32d15186a0
Remove Razor precompilation
2016-01-12 14:51:33 -08:00
ryanbrandenburg
cad7d44686
* Add a sample for SubAreas
2016-01-12 11:48:09 -08:00
N. Taylor Mullen
dbb69ef952
Add `TagHelperSample.Web` functional tests.
...
- Validated that each of `TagHelperSample.Web`s sites work properly.
- Found that the `ConditionalCommentTagHelper` page wasn't working as intended due to never being updated after `TagHelperContent` encoding changes.
- Added content verification for the `TagHelper/ConditionalComment` endpoint only since it's static HTML.
#3530
2016-01-11 17:12:47 -08:00
John Luo
c8a59d7f3e
Reacting to new middleware options pattern
2016-01-08 18:07:36 -08:00
Kiran Challa
7a955bcbc0
FormatFilter overrides content type set explicitly by the developer
2015-12-30 13:20:56 -08:00
Pranav K
2b9dd76535
Make RazorViewEngineOptions.FileProvider a list instead of a single item
...
Fixes #3806
2015-12-29 14:47:15 -08:00
Pranav K
51e74c2eba
Add hosting.json to MvcSandbox
2015-12-28 09:54:41 -08:00
John Luo
b7d95d813d
Reacting to middleware configureOptions updates
2015-12-23 12:27:57 -08:00
Pranav K
399e516065
Modify IViewComponentHelper to remove method selection ambiguity.
...
Fixes #612
2015-12-23 10:02:51 -08:00
Hao Kung
0e8113e393
OptionsModel => Options rename
2015-12-21 15:00:31 -08:00
damianedwards
1529c868f2
Improve ViewLocalizer resource look-up semantics:
...
- Always prepend with application name and let underlying `IStringLocalizerFactory` do the name gymnastics
- Use ExecutingFilePath instead of view name
- Trim off the file extension (so your resource doesn't have to have ".cshtml" in its name)
- Improved doc comments
- Added tests to cover ViewLocalizer behavior
- #3718
- #2767
2015-12-21 14:22:32 -08:00
Ajay Bhargav Baaskaran
9517de1c45
React to hosting changes - updated samples
2015-12-18 16:11:28 -08:00
Pranav K
7dac5c711b
Reacting to Hosting changes
2015-12-18 15:59:42 -08:00
Ryan Nowak
d25ea4be6d
react to breaking change in routing
2015-12-18 10:54:14 -08:00
damianedwards
0c3e7b5a75
Improve usability of IHtmlLocalizer & associated API:
...
- IHtmlLocalizer no longer derives from IStringLocalizer
- IHtmlLocalizer indexer now returns LocalizedHtmlString
- IHtmlLocalizer has GetString methods now that act the same as IStringLocalizer.GetString
- Made LocalizedHtmlString a struct to match LocalizedString
- Updated samples in response to aspnet/Localization#167
- Rename "ancestor" to "parent" for loc API
- Fixes some doc comments
- Fixed tests
- #3716
2015-12-17 16:35:19 -08:00
ryanbrandenburg
6a16681ed4
* Replace MvcMinimalSample with functional test
2015-12-16 15:18:25 -08:00
Ajay Bhargav Baaskaran
232b27ad5d
[ Fixes #3430 ] Removed RouteKeyHandling.CatchAll
2015-12-16 11:57:22 -08:00
Ryan Nowak
ad3c460500
React to breaking in IRouteConstraint
2015-12-14 10:08:09 -08:00
Doug Bunting
8a310b35a4
Update to latest `UseRequestLocalization()` signature
...
- build break
nit: add more trailing commas in init syntax
2015-12-11 22:58:13 -08:00
Pranav K
21e815cb36
Removing CodeGenerators.Mvc reference
2015-12-11 14:59:47 -08:00
Doug Bunting
19e6fb5719
MVC functional test cleanup part 1
...
- #3612 (subpart 1 of 2)
- delete six sites and associated tests entirely
- `ActionResultsWebSite`
- `ActivatorWebSite`
- `ControllerDiscoveryConventionsWebSite`
- `LoggingWebSite`
- `LowercaseUrlsWebSite`
- `ModelBindingWebSite`, now covered in integration tests
- remove now-unused `FilteredDefaultAssemblyProviderFixture`, `LoggingAssert` and `LoggingExtensions`
- move six test web sites into `./samples`
- `CustomRouteWebSite` -> `CustomRouteSample.Web`
- `FormatFilterWebSite` -> `FormatFilterSample.Web`
- `InlineConstraintsWebSite` -> `InlineConstraintSample.Web` (now singular)
- `JsonPatchWebSite` -> `JsonPatchSample.Web`
- `LocalizationWebSite` -> `LocalizationSample.Web`
- `RazorEmbeddedViewsWebSite` -> `EmbeddedViewSample.Web` (no longer "Razor" and now singular)
- do some cleanup: remove test dependencies, shorten sample controller names, use more attribute routing
- correct "license" spelling in `ApplicationModelWebSite`
2015-12-11 13:13:41 -08:00
Kiran Challa
57b88baad0
[ Fixes #3624 ] MVC functional test cleanup (part 2)
2015-12-10 16:26:39 -08:00
Kiran Challa
31e42ee312
[ Fixes #3433 ] Invalid media type 'text/plain; charset=utf-8'
2015-11-25 10:50:40 -08:00
Doug Bunting
d84587a99d
Quiet `initialization` target in `MvcSandbox` folder
2015-11-25 09:48:54 -08:00
ryanbrandenburg
b6f8c523a8
* Remove MvcSample and replace with MvcSandbox
2015-11-23 11:53:48 -08:00
Sébastien Ros
a420af67b7
Fix French translation
2015-11-20 16:07:30 -08:00
Ryan Nowak
8682fe0cfd
Replace ActionBindingContext with ControllerContext
...
This change introduces ControllerContext for inside of Controllers, and
controller-specific extensibility points. ControllerContext carries with
it the model binding infrastructure needed to do all of the things that
controllers need to do.
2015-11-20 15:32:37 -08:00
Pranav K
b520b0cb22
Limit [FromServices] to apply only to parameters
...
Fixes #3507
2015-11-17 16:41:04 -08:00
N. Taylor Mullen
d564a4a96b
React to aspnet/Razor#561 .
...
- `TagHelper` directives no longer have quotes.
- Regenerated test output.
2015-11-06 12:31:55 -08:00
Scott Addie
3c46662d91
Delete unused config.json file from MvcSample.Web
2015-10-30 10:25:12 -07:00
N. Taylor Mullen
d361c3a716
Update `TagHelperSample` conditionalcomment page.
2015-10-29 14:36:20 -07:00
N. Taylor Mullen
33b37d6554
React to aspnet/Razor#196 .
...
- Razor `TagHelper`s now special case `enum` values so you don't need to provide the entire `enum` prefix.
2015-10-29 10:06:43 -07:00
Scott Addie
92afcaa9f7
Fix small issues in Mvc.js
2015-10-26 10:52:43 -07:00
あまみや ゆうこ
b5bfdde194
remove Microsoft.AspNet.Server.IIS from sample
2015-10-25 01:17:57 +08:00
あまみや ゆうこ
38818a1033
Remove Microsoft.AspNet.Server.IIS from test Websites
2015-10-24 08:04:00 -07:00
Ryan Nowak
cea8d019f1
Add logging and scope for ViewComponent
2015-10-23 15:25:00 -07:00
Kirthi Krishnamraju
9658060019
React to aspnet/Localization#111
2015-10-23 01:47:29 -07:00
N. Taylor Mullen
0e25470660
React to aspnet/Razor#578 .
2015-10-22 14:41:40 -07:00
Ajay Bhargav Baaskaran
6bd97c7c30
Moving AllowAnonymous attribute to Authorization
2015-10-19 11:01:15 -07:00
Pranav K
0309a5216c
Add an option to RazorPrecompileModule to allow conditional compilation
...
based on Configuration.
Fixes #3276
2015-10-12 11:59:55 -07:00
Pranav K
f57e180971
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:53 -07:00
Pranav K
8d7b95655d
Removing Autofac dependency
2015-10-03 12:18:19 -07:00
Stefán Jökull Sigurðarson
c713aa92ca
Making the HtmlHelper.GetEnumSelectList take DisplayAttribute.GroupName into account to create select groups.
2015-09-29 09:53:48 -07:00
Pranav K
18c80d156c
Replace NotNullAttribute with thrown exceptions
2015-09-26 23:48:43 -07:00
Ajay Bhargav Baaskaran
9c81b95d1b
Renamed Controller.Context to Controller.HttpContext
...
- #3165
2015-09-25 11:01:30 -07:00
Pranav K
9eb2c5b810
Reacting to IExpirationTrigger -> IChangeToken rename
2015-09-22 08:14:34 -07:00
Ryan Nowak
046cb976b3
Move ActionResult classes back to main namespace
2015-09-16 21:42:31 -07:00
N. Taylor Mullen
93735a5be6
React to Razor `TargetElementAttribute` rename.
...
aspnet/Razor#516
2015-09-13 19:14:30 -07:00
Kiran Challa
62c0eb3f02
React to errorhandler and errorpage extension name changes
2015-09-10 12:30:16 -07:00
Ryan Nowak
229724c4ea
Reorganize MVC namespaces
2015-09-01 22:28:33 -07:00
Ajay Bhargav Baaskaran
3519c375fc
Minor cleanup - removed unwanted @
2015-08-21 14:40:35 -07:00
Ajay Bhargav Baaskaran
774219b2ef
[ Fixes #2788 ] Added a sample taghelper that handles IE conditional comments
2015-08-21 11:19:49 -07:00
Ryan Nowak
9d89a8cac3
Homogenize MVC startup code patterns
...
Use builder APIS for both AddMvc() and AddMvcCore()
Change various API patterns to all use .AddXyz(...) off of one or both of
these builders.
2015-08-16 18:48:24 -07:00
Kirthi Krishnamraju
18c3ad25fb
fix build break due to aspnet/configuration #246
2015-08-13 23:19:56 -07:00
Stephen Halter
43064ef8b6
React to Kestrel rename
...
aspnet/KestrelHttpServer#11
2015-08-11 16:30:03 -07:00
Pranav K
9d467810b5
Switching to Autofac from NuGet.org
2015-08-07 15:53:53 -07:00
Pranav K
43e4870fa2
Switching to the official Autofac package.
2015-08-04 15:12:19 -07:00
Victor Hurdugaci
e96b4d7b94
React to DNX renames
2015-07-29 04:49:49 -07:00
Tugberk Ugurlu
81f8b3edfb
removed packExclude from unnecessary places, replaced it with
...
publishExclude and removed kproj and xproj excludes
2015-07-20 16:49:59 -07:00
Doug Bunting
6033679193
Cleanup .xproj files to avoid future churn
...
- mostly remove useless `<RootNamespace>` elements
2015-07-17 09:07:23 -07:00
Mugdha Kulkarni
8cb2aae4f5
fixing 2704 -- Rename LanguageViewLocationExpanderOption to LanguageViewLocationExpanderFormat
2015-07-09 15:38:11 -07:00
Ryan Nowak
48bfdceea6
Add basic startup experience for MVC.Core
2015-07-08 17:16:07 -07:00
Ryan Nowak
e985fa5d42
Split up MVC.Extensions into smaller packages
...
Startup.cs API experience to follow in a separate change. This change just
gets the bulk of the code churn out of the way.
2015-07-06 23:41:22 -07:00
Ryan Nowak
950b8b41a8
Rename IFilter -> IFilterMetadata
2015-07-06 23:40:43 -07:00
Doug Bunting
4d5604690d
Add or update sample `readme.md` files
...
- #2731
2015-06-26 21:15:18 -07:00
Ryan Nowak
2f554c4b29
Use new antiforgery package
2015-06-25 14:45:00 -07:00
Ryan Nowak
faaba481e8
Adding an 'AddMinimalMvc()' for Mvc.Core and sample
...
This adds the ability to configure Mvc.Core for a project; MVC with
minimal services and dependencies.
2015-06-12 11:29:47 -07:00
Kirthi Krishnamraju
74b193b15d
Added configurable option for LanguageViewLocationExpander to use subfolder or suffix
2015-06-08 12:07:49 -07:00
Kiran Challa
0469103683
React to Session api review changes
2015-06-08 09:44:05 -07:00
Kirthi Krishnamraju
30d11a8227
Added LanguageViewLocationExpander into framework and removed it from samples
2015-06-04 14:06:08 -07:00
Kirthi Krishnamraju
d19b265a7f
React to aspnet/Configuration #194
2015-05-22 05:54:03 -07:00
Ryan Nowak
144c1d3cf4
Fix #2151 - Part 4 remove [Activate] support from controllers.
...
This change completely removes [Activate]. In a controller, you should
constructor injection or [FromServices] to access services.
To access context items (ActionContext, ActionBindingContext, root
ViewDataDictionary) you should use the respected attribute class.
We'd like to consider streamlining this further in the future by getting
down to a single injectable context for controllers, but for now this will
have to do.
2015-05-21 22:57:56 -07:00
Kiran Challa
2a321fd622
React to Caching api review changes
2015-05-21 14:44:27 -07:00
Doug Bunting
8a701726b3
Rename _GlobalImport.cshtml files to _ViewImports.cshtml
...
- also rename files and directories with "GlobalImport" in name
- nearly blind but avoid "ViewImportss" in new names
- public API change: `ViewHierarchyUtility.GetGlobalImportLocations()` -> `GetViewImportsLocations()`
- primary source updates were comments, tests, and implementation details
nit:
- rename NestedGlobalImports.cs file to NestedViewImportsController.cs, matching class
2015-05-21 12:27:08 -07:00
Kirthi Krishnamraju
78033fda1f
fix build break
2015-05-21 11:25:03 -07:00
Kirthi Krishnamraju
337bbad51d
React to aspnet/Configuration #195,#198 and fix few minor build break issues
2015-05-20 20:01:23 -07:00
Henk Mollema
8b1f8b9748
Added new ValidationSummary overloads to sample
...
Overview now shows every possible overload.
#1743
2015-05-12 20:20:34 +02:00
Doug Bunting
3fbead0ce8
Get builds working better within VS (temporary fix?); disable pre-compilation
...
- remove `RazorPreCompilation.cs` files from all but the PrecompilationWebSite
- related to #2498 but not addressing that issue since pre-compilation is what that site is about
2015-05-11 16:14:04 -07:00
Troy Dai
ea717729c1
React to common package name change
2015-05-07 09:39:08 -07:00
Kiran Challa
c0ca6214c2
React to Caching api changes
2015-05-05 10:08:50 -07:00
Kiran Challa
7e623258c0
Use strongly typed MediaTypeHeaderValue for content type in action results.
2015-05-04 14:06:58 -07:00
N. Taylor Mullen
64e726d2b2
Update LICENSE.txt and license header on files.
2015-05-01 13:55:25 -07:00
Kirthi Krishnamraju
30e54609cc
Fix #1911 : Create a separate package for ApiExplorer
2015-04-28 13:13:20 -07:00
Ajay Bhargav Baaskaran
3ca018375a
Issue #1885 - Updated startup code in few websites
2015-04-28 10:42:01 -07:00
Kirthi Krishnamraju
e48565dcd8
Adding errors in ModelState
2015-04-22 13:44:09 -07:00
Ryan Nowak
8bae02928d
Fix build break
2015-04-20 12:44:30 -07:00
Henk Mollema
3ac6acdab4
Removed clear-text password from sample
...
Removed unused clear-text password as it encourages risky coding.
#1764
2015-04-17 13:58:48 +02:00