Commit Graph

30400 Commits

Author SHA1 Message Date
Arthur Vickers a07065c02e React to removal of AsRelational 2015-06-19 09:39:41 -07:00
Hisham Abdullah Bin Ateya 797e1287e3 Using [NotNull] 2015-06-19 09:19:51 -07:00
Hisham Abdullah Bin Ateya 7fcbefc86f Using 'nameof' operator instead of magic strings 2015-06-19 09:19:50 -07:00
Doug Bunting c4fa402105 Add `ModelBindingResult.IsFatalError` and make body binding more consistent
- part I of II for #2445 (with a duplicate code PR to follow)
- needed for #2445 because new `ModelState` entries for values will make inconsisteny worse
- change `BodyModelBinder` to use same keys for all `ModelBindingResult`s and `ModelState` entries
 - return fatal error result if formatter adds an error to `ModelState`
 - update potential callers to avoid avoid ignoring `IsFatalError`
- fix test attempting to serialize all of `ModelState`
 - will be borked with additional `RawValue`s in state
- fix two other tests that serialized `ModelState` but checked only `IsValid`

nits:
- address minor inconsistencies in `ModelBindingContext`
- use `System.Reflection.Extensions` package a bit more, where it's already referenced
- remove some unused resources
2015-06-18 16:19:01 -07:00
BrennanConroy 3b5472b350 Add AzureAD 2015-06-18 15:55:57 -07:00
Chris R 03f7e4b362 React to IRequestIdentifierFeature refactor. 2015-06-18 15:55:12 -07:00
Chris R 2c43b350b4 React to IRequestIdentifierFeature refactor. 2015-06-18 15:38:58 -07:00
Eilon Lipton 361225aec7 Merge pull request #17 from hishamco/dev
Using [NotNull]
2015-06-17 20:44:13 -07:00
Stephen Halter 29098d6383 Fix UvLoopHandle.ReleaseHandle on linux
Libuv.loop_close can clear the GCHandle pointer on linux
2015-06-17 17:53:56 -07:00
Ajay Bhargav Baaskaran b245996949 [Fixes #2700] Added HttpHeadAttribute 2015-06-17 12:58:02 -07:00
Arthur Vickers cd74c3acd3 Stop using GenerateValueOnAdd. 2015-06-17 11:56:23 -07:00
Arthur Vickers 7f63665607 Stop using GenerateValueOnAdd. 2015-06-17 11:54:48 -07:00
Hao Kung e645863e82 Merge branch 'release' into dev 2015-06-17 11:29:39 -07:00
Doug Bunting f55367597a Pull in latest `dnvm` from Home's dev branch
- lots of `dnvm.ps1` fixes
- FreeBSD fixes in `dnvm.sh`
2015-06-17 11:28:48 -07:00
Doug Bunting 27283ec098 Make `string`-based expression evaluations behave consistently
- #1485, #1487
 - handle `TemplateInfo.HtmlFieldPrefix` in `ViewDataEvaluator.Eval()`
  - attempt lookup in the `ViewDataDictionary` using full name then evaluate
    relative `expression` against `viewData.Model`
  - handle `null` or empty `expression` special case in this method (remove `throw`s)
 - always pass relative `expression` name into `Eval()`
  - remove `null` or empty `expression` handling from higher-level code
  - in a couple of cases, special-case returned `ViewDataInfo`
- #2662
 - remove incorrect guard from `DefaultHtmlGenerator.GenerateRadioButtion()`
- add doc comments for the core methods that have changed
- enable unit tests skipped due to one of above bugs
 - fix one (yeah, just one) other test with incorrect expectations
- remove functional test comments about the above bugs and update expectations

nits:
- move some comments describing `ViewDataEvaluator` methods above the methods
2015-06-16 21:54:56 -07:00
Doug Bunting 8b5931d758 Add `Encode()` and `Raw()` overrides to `IHtmlHelper<TModel>`
- #2392
- `dynamic` does not work correctly when inherited from a base `interface`
2015-06-16 18:48:07 -07:00
Chris R af6a17710b #310 Refactor IRequestIdentifierFeature. 2015-06-16 16:26:37 -07:00
Chris R cdf8072c83 #127 Target net451 and use Marshal.SizeOf<T>. 2015-06-16 15:59:30 -07:00
Ajay Bhargav Baaskaran 7172608722 Using LogVerbose instead of LogInformation 2015-06-16 14:33:05 -07:00
Chris R f9ed27c3a0 React to removal of ErrorPageOptions.ShowAll. 2015-06-16 12:09:18 -07:00
Hao Kung ff473d6fc8 React to identity rename 2015-06-16 11:41:04 -07:00
Ajay Bhargav Baaskaran 4fe3fbabf0 React to aspnet/Diagnostics#142 changes 2015-06-16 11:27:33 -07:00
Chris R 9e547d5a9d Remove extra bracket from error page view. 2015-06-16 10:25:54 -07:00
Ajay Bhargav Baaskaran 69e051dab7 Removed Cors.Core dependency from Mvc.Core 2015-06-16 10:25:27 -07:00
Ajay Bhargav Baaskaran fcdbd17e58 Removed Diagnostics.Abstractions dependency from Mvc.Razor 2015-06-16 10:25:26 -07:00
Ajay Bhargav Baaskaran 6fd8465402 Removed unnecessary cors dependency 2015-06-16 10:25:25 -07:00
Henk Mollema 72d8c12ca3 Removed unused resource string 2015-06-16 09:51:11 -07:00
Henk Mollema 0da9e2bec5 Remove ErrorPageOptions properties except SourceCodeLineCount
- Removed all properties except `SourceCodeLineCount`
- Updated ErroPageMiddleware (including some minor code-style changes)
- Updated CompilationErrorPage.cshtml and ErrorPage.cshtml
- Added `run` command to PageGenerator project.json to execute from command line
- Include cookies on error page
- Removed showSource parameter
- Remove unused exception parameter
2015-06-16 09:51:10 -07:00
Arthur Vickers ccdedc704d React to EntityOptions -> DbContextOptions rename 2015-06-15 23:01:16 -07:00
Chris R a668f4e1c0 React to HttpResponse.HeadersSent rename. 2015-06-15 18:29:20 -07:00
Chris R 1639ee07e7 React to HttpResponse.HeadersSent rename. 2015-06-15 17:49:20 -07:00
Victor Hurdugaci 00b2daa068 Fix argument parsing for fast build 2015-06-15 16:05:18 -07:00
Chris R 736e6bee2b #233 Create the wwwroot directory if it doesn't exist. 2015-06-15 11:11:08 -07:00
Stephen Halter 1592459a0b Dispose Listeners if they fail to start 2015-06-15 10:08:03 -07:00
Stephen Halter a992c78548 Dispatch user defined callback so it can't block the event loop 2015-06-15 10:07:58 -07:00
Stephen Halter adc0310491 Ensure all handles still get released after graceful shutdown 2015-06-15 09:43:01 -07:00
Stephen Halter 31057f65bc Gracefully shutdown even when there are open connections 2015-06-15 09:41:33 -07:00
Doug Bunting 296ec7736e Go one less step when resolving `[ModelMetadataType]`
- #2610
- make MVC 6's attribute consistent with data annotation's `[MetadataType]`, used in MVC 5
2015-06-14 18:02:10 -07:00
Victor Hurdugaci f377542e38 Build projects in one go 2015-06-13 14:42:16 -07:00
Stephen Halter 5c6a53c491 Dispose Listeners if they fail to start 2015-06-12 17:02:31 -07:00
Stephen Halter 7e125faa73 Dispatch user defined callback so it can't block the event loop 2015-06-12 17:02:27 -07:00
Chris R e9d406e2f7 React to OnSendingHeaders rename. 2015-06-12 15:58:15 -07:00
Chris R ab3cc8bcc7 React to OnSendingHeaders rename. 2015-06-12 15:53:07 -07:00
Chris R ef4ab17700 React to OnSendingHeaders rename. 2015-06-12 15:48:45 -07:00
Chris R fa3b98f113 React to OnSendingHeaders rename. 2015-06-12 15:28:54 -07:00
Chris R 08c0bbbd60 React to OnSendingHeaders rename. 2015-06-12 15:05:45 -07:00
Chris R c2b638d85b React to OnSendingHeaders rename. 2015-06-12 14:38:03 -07:00
Chris R a79b05bf24 #320 Rename OnSendingHeaders to OnResponseStarting and HeadersSent to HasStarted. 2015-06-12 12:59:07 -07:00
Stephen Halter 106edf8c86 Ensure all handles still get released after graceful shutdown 2015-06-12 12:49:52 -07:00
Chris R 20f2219886 #121 Enable kernel mode response caching. 2015-06-12 12:12:22 -07:00