Commit Graph

39740 Commits

Author SHA1 Message Date
Glenn Condron 206f74554b fix some typos and updated some parts of the readme. Added GetRuntime.cmd 2014-03-31 11:14:14 -07:00
Chris Ross 097138e813 Auth: Validate acks. 2014-03-31 11:12:22 -07:00
Chris Ross 4347ddfd0f Security contracts. 2014-03-31 11:12:20 -07:00
rowanmiller dabb68cc6d Fix EF InvalidOperationException on Startup
The code that does an 'UPSERT' of seed data on app start was querying
existing instances and attaching as modified of seed instances on the
same context. Now that we track query results this will throw because
the context has two instances of the same entity (same key value).

Swapping to use a temporary context to query existing data.
2014-03-31 10:45:41 -07:00
Chris Ross 83855f8eac Redesign security contracts. 2014-03-31 10:30:57 -07:00
Pranav K bbf51f3556 Re-adding suitable builds 2014-03-31 10:11:55 -07:00
Yishai Galatzer 3e7d8d54f9 CR Feedback
Added and renamed tests
2014-03-31 09:32:47 -07:00
Yishai Galatzer ff5d919e0d Remove unused usings 2014-03-31 09:31:50 -07:00
Yishai Galatzer cd0528b1b2 Link generation related tests 2014-03-31 09:31:49 -07:00
Yishai Galatzer 77ef7a5cde RouteConstraints Step II + III
Include Url Generation support
Add unit tests
Clean issues found by unit tests
2014-03-31 09:31:48 -07:00
Pranav K b705f363ab Update snapshot dependencies to not use suitable build 2014-03-31 06:27:56 -07:00
David Fowler a18e037578 Updated samples to use new hosting APIs 2014-03-31 02:44:09 -07:00
N. Taylor Mullen a5ed1157d5 Refactor ViewEngine to support partials.
This references WEBFX-95 and is the preliminary part to support Partial helpers.
2014-03-30 17:20:09 -07:00
David Fowler 351964878f Updated task package 2014-03-29 03:19:45 -07:00
David Fowler 2b87a625d9 Updated clr packages 2014-03-29 01:15:28 -07:00
dougbu 2b70156cf4 Inject `HtmlHelper` property into `RazorView<T>`
- add `IHtmlHelper<T>` and `ICanHasViewContext`
- adjust `HtmlHelper` and `HtmlHelper<T>` to match
- throw if `ViewContext` accessed prior to `Contextualize` call
- XML comments (from old world) all around

Note
- no current need for an `HtmlHelper` copy constructor or `Clone()` method
- expect recursion code to get another injected `IHtmlHelper<T>` and then
  "contextualize" that instance with a new `ViewContext`
2014-03-28 17:29:00 -07:00
dougbu 94db3c392a Add `FormContext` to `ViewContext`
- start with `FormContext` and classes it needs from legacy world
- FYI `ModelClientValidationRule` came from Web Pages; the rest from MVC

Cleanup and make files compile in new world
- remove `FormContext.GetJsonValidationMetadata` method; will file an
  issue to revive this using Json.NET
- don't store `FormContext` in the `HttpContext`, no longer have child
  actions
- do `null` checks in setters, not getters (minor perf improvement)
- fix namespaces and usings
- wrap long lines; use `[NotNull]`; no copyright notice
- use explicit comparers for dictionaries
- add XML comment for odd `ModelClientValidationRule.ValidationType`
  property
- Collection -> List
2014-03-28 17:01:23 -07:00
Yishai Galatzer 54c73e4227 Cleanup + TODO 2014-03-28 16:55:56 -07:00
Glenn Condron 52563e3dbe Initial checkin of some samples and a readme 2014-03-28 14:31:47 -07:00
Pranav K f1efbde29d Revive HelperResult to allow using @helper in views 2014-03-28 11:08:15 -07:00
Chris Ross af1a97cd7c WebListener: Normalize request read validation. 0 size is invalid. Return 0 if closed. 2014-03-28 11:03:09 -07:00
Glenn Condron b3ce7be281 initial commit 2014-03-28 10:43:34 -07:00
Pranav K 50f4fff510 Updating CoreCLR package versions 2014-03-28 09:28:23 -07:00
Pranav K 3fa5f9ca47 Updating CoreCLR package versions 2014-03-28 06:32:26 -07:00
Pranav K eaddb29577 Updating CoreCLR package versions 2014-03-28 06:03:23 -07:00
Pranav K e019e67325 Updating CoreCLR package versions 2014-03-28 05:53:01 -07:00
David Fowler 36a2524780 Updated CLR dependencies 2014-03-28 00:23:16 -07:00
David Fowler a42fcb72b3 Update to new version of Tasks 2014-03-28 00:04:30 -07:00
David Fowler edb931bb2d Fixed interop services package version. 2014-03-27 22:45:20 -07:00
David Fowler 0767bb104e Updated package versions. 2014-03-27 22:33:28 -07:00
dougbu 655b329dd0 Increment System.Threading.Tasks package version
- today's build break, mark II

also remove dangling reference to TestCommon
2014-03-27 19:56:27 -07:00
Pranav K 3ce198249d Updating CoreCLR package versions 2014-03-27 18:42:51 -07:00
Pranav K 0dcb918084 Updating remaining package versions to match CoreCLR 2014-03-27 18:34:04 -07:00
Pranav K b366cb1cd0 Updating CoreCLR package versions 2014-03-27 18:30:24 -07:00
Pranav K 6ff5ebafd2 Updating CoreCLR package versions 2014-03-27 17:30:36 -07:00
Praburaj 2a19ec7b2a Simplifying the options to the error page middleware. 2014-03-27 16:23:58 -07:00
Praburaj 4fc1857994 Fixing a code review comment to change the app name from "BugTracker" to "MusicStore" 2014-03-27 16:20:25 -07:00
Praburaj 5eacb62b62 A few changes with this checkin:
1. Adding scripts to self host & custom host Music store
2. Updating readme
3. Cleanup some helper classes that are not necessary.
4. Adding error page middleware for diagnostics.
5. Flipping the switch to run helios on "K" by default.
2014-03-27 16:10:16 -07:00
dougbu f60f14d537 Add `TemplateInfo` property to `ViewDataDictionary`
Compared to legacy MVC:
- correct usings and namespace
- remove `GetFullHtmlFieldId` method; depends on `HtmlHelper` method that
  can't be static
- String -> string
- remove reference to a legacy bug
- convert internal `VisitedObjects` property to public `AddVisited()` method

Further cleanup
- remove explicit backing fields for remaining properties
- add copy constructor to replace code distributed around legacy MVC
- don't "combine and trim" in `GetFullHtmlFieldName()`
2014-03-27 16:01:29 -07:00
Pranav K 264fa5204b Update version of System.Text.Encoding to match CoreCLR 2014-03-27 15:25:40 -07:00
Ryan Nowak ffb73a1ed8 Fix build issues with Injector
This was causing intellisense failures in VS. It looks like the
commandline is able to accidentally pick up the compatability extensions
from the model binding assembly, but this is not the case in VS.

Changed this code not to rely on compatability extensions.
2014-03-27 15:07:28 -07:00
sornaks 007ac9443d WebFX-153: Add Content() and Json() to the Controller class. 2014-03-27 14:12:39 -07:00
Yishai Galatzer db7b36a859 Fix merge errors 2014-03-27 11:01:04 -07:00
Yishai Galatzer 70e26a80ad CR Feedback 2014-03-27 10:58:15 -07:00
Yishai Galatzer a917cbd577 Constraints 2014-03-27 10:58:14 -07:00
Pranav K 44af396da9 Prefer string.Equals static method over the Equals instance method 2014-03-26 22:24:38 -07:00
Ryan Nowak cf16d6cba7 Small refactor of TemplateBinder
We'll need to access the accepted values to do proper link generation, so
separating this process out into 2 parts.

Also moving defaults into the TemplateBinder because they are conceptually
part of the route, not part of the request. I'll do the same for
TemplateMatcher soon, but it's a big change and worth separating.
2014-03-26 18:44:57 -07:00
Pranav K cb21c34770 Reintroduce ModelStateDictionaryTest 2014-03-26 17:32:45 -07:00
Pranav K 8e495158ef Modifying ModelStateDictionary to derive from IDictionary
* Reintroducing methods that weren't ported over earlier
2014-03-26 17:29:45 -07:00
Pranav K 8b2137189e Add finish build triggers along with snapshot dependencies when updating TeamCity dependencies 2014-03-26 17:16:00 -07:00