Pranav K
00b6e71e31
Changes per NotNull PR comments
2015-09-21 17:22:27 -07:00
Pranav K
498d209949
Remove chaining from HashCodeCombiner.
...
Reacting to https://github.com/aspnet/Common/issues/40
2015-09-21 17:11:08 -07:00
Pranav K
f045c6792b
Allow _ViewImports to remove default inherited tag helpers.
...
Additionally simplifying the contract for
ChunkInheritaceUtility\IChunkMerger so we don't have to understand the
order in which CodeTrees appear.
2015-09-21 14:53:24 -07:00
Ryan Nowak
b95dcd5f1c
Fix #3102 - Add an AddMvcOptions to builders
...
This makes it easier/possible for any third party code that extends
IMvcBuilder to set options.
2015-09-21 12:54:59 -07:00
Ryan Nowak
f4c5e31ec1
Remove JsonPatch from MVC
...
JsonPatch is moving to https://github.com/aspnet/JsonPatch
2015-09-21 11:14:40 -07:00
Pranav K
66a04c2fd6
Replacing NotNullAttribute with thrown exceptions
2015-09-21 10:26:14 -07:00
Ryan Nowak
00c436b0e1
[Perf] Remove use of [FromServices] on Controller
...
[FromServices] requires modelbinding to run for each of these four
properties, which allocates a lot, and ultimately just ends up calling
GetRequiredService in the end.
Also, retrieving these services is now lazy, which should be very
beneficial as few of them aren't used often.
2015-09-21 08:53:12 -07:00
Ryan Nowak
9badd9386e
API-Review Strongly-typed collections for a few options types.
...
We don't want these extensions methods defined in a wierd namespace, it's
straightforward and future-proof to just make these strongly-typed
collections.
2015-09-20 22:11:22 -07:00
Ryan Nowak
10ec9144ca
Remove extra registration of TelemetrySource
...
This is now provided by hosting.
2015-09-20 21:16:01 -07:00
Ryan Nowak
4d55a6e62d
API review - remove DefaultOrder
...
No change in behavior intended, removing this from our public API.
2015-09-20 21:11:57 -07:00
Ryan Nowak
ccb5ead450
Api-Review - put uri complexity in CreatedResult
2015-09-20 19:44:32 -07:00
Doug Bunting
42017faa21
Add `InputFormatterResult` and `InputFormatterContext.ModelName`
...
- #2722
- make communication of errors from formatters to `BodyModelBinder` explicit
- `JsonInputFormatter` now adds errors to `ModelStateDictionary` with correct key
- change `InputFormatter.SelectCharacterEncoding()` to add an error and return `null` when it fails
- one less `Exception` case and removes some duplicate code
nits:
- improve some doc comments (more `<inheritdoc/>`, `<paramref/>` and `<see/>`)
- add another two `BodyValidationIntegrationTests` tests
2015-09-19 21:36:38 -07:00
Doug Bunting
0fb09908d3
[Build break] Correct doc comment references to match current namespaces
...
- local command line builds fail consistently during `xml-docs-test`
- bit buried on the CI machine but repo is not testing successfully there
2015-09-17 23:12:26 -07:00
Pranav K
7b433820b1
Changes per PR comments
...
Reformatting parameter identation
2015-09-17 15:42:58 -07:00
Pranav K
a68d9e4cb1
Replace NotNullAttribute with thrown exceptions
2015-09-17 11:56:44 -07:00
Ryan Nowak
538cd9c191
Move less-commonly used types out of .Rendering
2015-09-16 23:52:29 -07:00
Ryan Nowak
046cb976b3
Move ActionResult classes back to main namespace
2015-09-16 21:42:31 -07:00
Pranav K
1c4614c219
Avoid allocating strings in DefaultViewLocationCache
...
Fixes #3135
2015-09-16 17:28:40 -07:00
Pranav K
00075520b4
Razor CompilerCache allocates too much in NormalizePath
...
Fixes #3035
2015-09-16 16:55:51 -07:00
Ryan Nowak
9a15b54d30
Flow IHtmlContent through to the razor buffer
2015-09-16 16:17:40 -07:00
Ryan Nowak
a707311d9e
Fix #3087 - use IHtmlContentBuilder in TagBuilder
...
Improves authoring experience when using TagBuilder by taking advantage of
IHtmlContentBuilder an its extension methods.
TagBuilder.InnerHtml is no longer settable.
2015-09-16 10:03:03 -07:00
Pranav K
887ab64d75
Throw an exception if layouts have circular references.
...
Fixes #3100
2015-09-14 12:57:06 -07:00
Doug Bunting
29a25b2ed1
No need to add an instance in `WebApiCompatShimMvcBuilderExtensions`
...
- DI has changed since this class was written
2015-09-13 22:25:04 -07:00
N. Taylor Mullen
93735a5be6
React to Razor `TargetElementAttribute` rename.
...
aspnet/Razor#516
2015-09-13 19:14:30 -07:00
Ryan Nowak
94388a8804
React to BufferedHtmlContent changes
2015-09-13 13:51:53 -07:00
Pranav K
85bb33a62a
Fixing formatting in RoslynCompilationService
2015-09-11 12:22:34 -07:00
Pranav K
345021d822
Set RazorError code to null
2015-09-11 12:08:23 -07:00
Pranav K
bc10a17107
Reacting to DNX changes
2015-09-10 17:51:59 -07:00
Pranav K
0350f6ed48
Adding NeutralResourcesLanguageAttribute to Mvc assemblies
2015-09-10 16:17:42 -07:00
Shannon Deminick
87c15bb6dc
Adds/updates some docs for the FromServicesAttribute with examples
2015-09-10 08:03:50 -07:00
Pranav K
2e32ffc004
Use PrecompilationTagHelperTypeResolver to locate TagHelpers during
...
precompilation.
Fixes #2298
2015-09-09 18:25:11 -07:00
KevinDockx
894574d04e
Implement Replace Move and Copy for dynamic objects
2015-09-08 22:09:44 -07:00
Pranav K
67eb16dc67
Fixing RazorViewEngine formatting
2015-09-08 15:52:53 -07:00
Pranav K
1c8f22058c
Make RazorViewEngine.GetNormalizedRouteValue public
...
Fixes #3108
2015-09-08 15:41:44 -07:00
Ryan Nowak
a6aaef0d63
Optimize async code in model binders
...
Optimize the 'no-op' path for our model binders to return a cached task
where possible without going async.
2015-09-08 09:42:34 -07:00
Ryan Nowak
ab08e27a4b
Simplify CompositeModelBinder
...
Also adds a diagnostic ToString to ModelBindingResult to make testing
easier.
2015-09-08 08:47:21 -07:00
Ryan Nowak
382c9ab86a
Test Cleanup: Fix Assert.NotNulls with ModelBindingResult
2015-09-07 17:15:31 -07:00
Ryan Nowak
465b4ce0df
Use TelemetrySource
2015-09-06 20:23:05 -07:00
Ryan Nowak
5afadf6998
Fix documentation error
2015-09-03 17:11:47 -07:00
Ryan Nowak
076ce6a8a1
Make ModelBindingResult a struct.
2015-09-03 12:52:50 -07:00
Hao Kung
e4fe31a602
Nuke extra curly
2015-09-02 21:21:41 -07:00
Hao Kung
a786eaa9e4
Resolve merge issue
2015-09-02 21:10:43 -07:00
Hao Kung
76dceaef76
Fix build breaks
2015-09-02 16:22:02 -07:00
Hao Kung
bc2bce8bd6
Curly's are important
2015-09-02 16:14:25 -07:00
N. Taylor Mullen
1d865afe7f
React to Razor error length change.
...
aspnet/Razor#386
2015-09-02 15:38:18 -07:00
Hao Kung
8e57fa5350
React to options
2015-09-02 15:07:16 -07:00
Hao Kung
3ebdcc5f6f
React to options changes
2015-09-02 14:07:06 -07:00
Sebastien Ros
dd94d54e1d
[ Fixes #2929 ] Moving IsLocalUrl implementation to UrlHelper
2015-09-02 09:30:26 -07:00
Kiran Challa
a0e0df87de
[ Fixes #3016 ] Disable response buffering in places where the content is already built/available
2015-09-02 09:22:36 -07:00
Kirthi Krishnamraju
7a3f34089f
fix build break due to dnx resource change
2015-09-01 23:31:09 -07:00