Commit Graph

27752 Commits

Author SHA1 Message Date
Pavel Krymets a098b8ce2b Reach to Hosting changes 2015-10-21 10:49:31 -07:00
Pavel Krymets e3ceeb43ba Fix build 2015-10-21 10:36:02 -07:00
Pavel Krymets f8fd2f9ac9 React to hosting changes 2015-10-21 10:23:53 -07:00
Rowan Miller d27d18fe5a 💚 Fix more calls to UseDatabaseErrorPage
Some more calls that I missed in my previous commit. The overload being used in the templates has swapped to a builder pattern (see aspnet/Diagnostics#184). But rather than updating to the new signature, just swapping to the parameterless overload since it enables everything by default (same as UseDeveloperExceptionPage()).
2015-10-21 10:22:43 -07:00
Pavel Krymets f36faf2a72 React to hosting changes 2015-10-21 10:20:10 -07:00
Rowan Miller 42a5a28210 💚 React to API change in UseDatabaseErrorPage
The overload being used in the Startup.cs has swapped to a builder pattern (see https://github.com/aspnet/Diagnostics/issues/184). But rather than updating to the new signature, just swapping to the parameterless overload since it enables everything by default (same as UseDeveloperExceptionPage()).
2015-10-21 10:00:03 -07:00
Ryan Nowak 1474ed8fe8 Fix breaks to xml docs 2015-10-20 23:31:02 -07:00
Ryan Nowak 3576939457 Fix break in XmlSerializerOutputFormatter tests
The wrong type is being passed in to the wrapper-provider for
XmlSerializer. DCS formatter is already correct.
2015-10-20 22:25:56 -07:00
Ryan Nowak 800e46eed4 Fix failures in StringOutputFormatter functional tests
The missing piece here is is that StringOutputFormatter needs to set the
ContentType so that it gets overridden. The problem is that the formatter
is likely called with something like application/json, but decides to
write a string anyway. So because we're saying 'yes we can write' we also
need to override what we're writing.
2015-10-20 22:12:21 -07:00
Eilon Lipton 55b72c04bf Add high-pri doc comments for views, controllers, HTML helpers, Startup 2015-10-20 18:24:56 -07:00
Ryan Nowak 38b65875db Refactor of OutputFormattterContext 2015-10-20 18:05:57 -07:00
Ryan Nowak d584bcabcf React to changes in Authz 2015-10-20 17:45:02 -07:00
Pranav K 8b0c157296 Rename ModelState (the type) -> ModelStateEntry
Fixes #3326
2015-10-20 16:43:00 -07:00
N. Taylor Mullen be324b220a Expose `FilePath` on `MappingLocation`.
- We had the `FilePath` information available to us but we weren't exposing it on the `MappingLocation` context object.
- By exposing the `FilePath` the Razor editor can 100% know where a `MappingLocation` is resolved from. If `null` the location is deemed to be the current source/generated file.

#552
2015-10-20 14:42:42 -07:00
Cesar Blum Silveira 77f29142aa Disable tests that randomly hang on Linux (#442). 2015-10-20 14:12:05 -07:00
Pranav K 47365e421f Add generations TFMs to Hosting packages 2015-10-22 12:19:45 -07:00
N. Taylor Mullen 8e946798a1 Remove compilation options from services.
- This was a temporary work around to allow MVC to build.
- Reacts to aspnet/Mvc#3383
2015-10-22 11:01:51 -07:00
Chris R 4702752384 #411 Default webroot to wwwroot if the directory exists. 2015-10-22 09:27:53 -07:00
David Fowler f2e7c49c36 Don't add platforms services if no available 2015-10-22 08:42:31 -07:00
Chris R 10822b3b4f #411 Move webroot from project.json to config. 2015-10-22 06:10:33 -07:00
Pranav K 39c355002b Switching to using generations TFM 2015-10-21 21:38:02 -07:00
Pavel Krymets 7cc3e11a9e Add compiler configuration to services and another overload for test server creation
.. to alow host service configuration
2015-10-21 14:44:20 -07:00
John Luo 99f5febc3b Changing argument type of serverFeatures to IFeatureCollection 2015-10-21 10:46:01 -07:00
Pavel Krymets 3774b6055f React to xnd dependency injection refactorings 2015-10-21 09:31:22 -07:00
Hao Kung 2b259e8b99 Remove deprecated AddCookieAuthentication methods 2015-10-20 13:56:40 -07:00
Hao Kung e0464c9508 Add some basic logging to AuthZ/N 2015-10-20 13:47:59 -07:00
Ryan Nowak 173f00fda7 Update to use DiagnosticSource 2015-10-20 11:47:29 -07:00
Ryan Nowak 054b39013c Reduce allocations in MSD enumeration 2015-10-20 10:35:16 -07:00
Rowan Miller 2e884f20f7 📝 Add doc comments to database error page 2015-10-20 10:18:10 -07:00
Rowan Miller 1c26436041 Bring back "Apply Migrations" button on database error page
Mostly just a revert of the commit that removed this functionality, with a few changes:
* Perform proper JavaScript encoding in the script part of the database error page Views/BaseView.cs
* Use the builder pattern in the UseXyz extension methods on IApplicationBuilder (per #184). Also applying this to DatabaseErrorPageOptions to keep things consistent.
* Fixing a few tests that were getting the context from DI but putting it in a using block so that it got disposed (rather than letting DI handle disposing).
2015-10-20 09:29:15 -07:00
Rowan Miller 111dab7ddf 🐛 No database error page for existing databases
When there is an existing database and no migrations are present, then we should just display the standard error page as they are not using migrations and need to adjust their mapping code to match the existing schema.
Resolve #182
2015-10-20 09:23:42 -07:00
あまみや ゆうこ 19d0337735 Update project.json 2015-10-20 19:42:43 +08:00
Ryan Nowak 6985015e2d Fix test breaks in WebAPI shim
This hasn't hit universe yet, but these needed to change with the
ObjectResult refactor
2015-10-19 18:00:02 -07:00
John Luo 828e8d755e reacting to telemetry rename 2015-10-19 17:21:15 -07:00
John Luo 793504843e reacting to telemetry rename 2015-10-19 17:17:40 -07:00
DamianEdwards 7ed6a6cb57 Add doc-comments for main APIs
- Coherence-Signed#75
2015-10-19 16:33:19 -07:00
Kirthi Krishnamraju 82cba7c0b2 react to aspnet/localization #90 2015-10-19 16:15:57 -07:00
Doug Bunting 207e97db7a Fix DNX Core testing on Windows
- avoid `cmd /C dnvm.cmd ...` because `cmd` does not report `.cmd` script exit code correctly
  - change both `_dnu.shade` and `_k.shade` though `_k.shade` is more-often an issue
- @moozzyk reported problem in [discussion](https://github.com/aspnet/Universe/pull/299#discussion-diff-41954492) of PR #299
2015-10-19 15:41:13 -07:00
Eilon Lipton c0242240f8 Adding doc comments for frequently used APIs
Some copied from older docs.
Also renamed BuilderExtensions type to a more specific name.
2015-10-19 15:25:59 -07:00
Hao Kung 4ce3efd28f Add event ids for logging 2015-10-19 15:02:10 -07:00
Cesar Blum Silveira c765fedb21 Fix CoreCLR test pass on Linux (fixes #15). 2015-10-19 14:50:46 -07:00
DamianEdwards 8bab053107 CR feedback 2015-10-19 14:32:04 -07:00
Cesar Blum Silveira f00c7c6d06 Fix CoreCLR test pass on Linux (fixes #442). 2015-10-19 14:27:01 -07:00
DamianEdwards dade325ac8 CR feedback 2015-10-19 14:19:03 -07:00
Eilon Lipton fd54c5af21 Add lots of missing doc comments.
Also did some minor renames to match extension method patterns.
2015-10-19 13:02:05 -07:00
Stephen Halter 8f0d1179ab Allow Nagle’s algorithm to be disabled via IKestrelServerInformation.NoDelay 2015-10-19 12:44:21 -07:00
Ryan Nowak 06cc58663e Move implementation of ObjectResult into a facade 2015-10-19 11:56:03 -07:00
Ajay Bhargav Baaskaran 0f78135f5d Moving AllowAnonymous attribute from MVC 2015-10-19 11:02:20 -07:00
Ajay Bhargav Baaskaran 6bd97c7c30 Moving AllowAnonymous attribute to Authorization 2015-10-19 11:01:15 -07:00
DamianEdwards 585c445366 More doc-comments & added IsStaging 2015-10-19 10:59:39 -07:00