Commit Graph

40929 Commits

Author SHA1 Message Date
Hao Kung d142160f47 OnCompletedDispose => RegisterForDispose 2015-07-13 12:23:03 -07:00
Steve Smith 94dba8ff0e Moved address parsing to ServerAddress 2015-07-13 11:10:25 -07:00
markrendle 98995132de Pre-create Continue bytes in Frame 2015-07-13 10:43:05 -07:00
sornaks 52af452a08 Fixing XML docs. 2015-07-10 16:48:36 -07:00
sornaks a02082397a Introducing IHtmlContent in Mvc.Razor.
- Changing HtmlHelper and HelperResult to implement IHtmlContent.
- Introducing BufferedHtmlContent.
- Making RazorPage handle only IHtmlContent and clearing out other types.
- Making StringCollectionTextWriter use BufferedHtmlContent so that it can be returned where necessary.
- Updating places which involve Write/Copy to pass in encoders.
- The encoders are currently not being used during write. But when HtmlString is modified to carry encode metadata, the encoder can be used for writing. This is a perf optimization and hence not a part of this change.
- Making TagHelperContent implement IHtmlContent.
2015-07-10 16:24:32 -07:00
Mugdha Kulkarni 933a13608f Adding fix for 2756 and test cases. Skipping the test cases for 2793. 2015-07-10 15:58:36 -07:00
sornaks ec5d1b4f4a Merge branch 'htmlcontentpart1' into dev 2015-07-10 15:45:48 -07:00
sornaks 6a7cd0f490 Making TagHelperContent implement IHtmlContent. 2015-07-10 15:44:22 -07:00
N. Taylor Mullen 2031a73918 Normalize tests project.json formatting. 2015-07-10 15:40:03 -07:00
N. Taylor Mullen c9c07bd393 Update test project.json to not depend on Moq for CoreCLR. 2015-07-10 15:38:37 -07:00
Chris R c9f0a47c0d Empty challenge for authenticated request should result in Forbidden. 2015-07-10 14:50:11 -07:00
Chris R a7a1ea59bf #8 re-enable and expand NTLM tests. 2015-07-10 14:36:39 -07:00
Ryan Nowak 35ee0e3a49 Fix for #2739
This change removes the validation that forces an OutputFormatter to set
an encoding, so that you can use the OutputFormatter base class for
non-text.

The check that we had would pretty much only be hit when you
didn't have any SupportedEncodings. If you have anything in
SupportedEncodings, then one of them will be picked as a default. So
removing the check is to do, because for a text-based formatter you'd
never run into this issue in the first place.
2015-07-10 12:01:57 -07:00
sornaks 25ea93de9e Making QueryHelpers.AddQueryString support # in the URL. 2015-07-09 16:08:45 -07:00
Mugdha Kulkarni 8cb2aae4f5 fixing 2704 -- Rename LanguageViewLocationExpanderOption to LanguageViewLocationExpanderFormat 2015-07-09 15:38:11 -07:00
sornaks 24f90cc914 Introducing IHtmlContent - an interface which lets any content define how to write itself. 2015-07-09 15:01:36 -07:00
Troy Dai 8b10187402 Update dependencies 2015-07-09 14:55:25 -07:00
Wei Wang 0dddc41a24 Remove useless and incompatible dependencies 2015-07-09 14:48:56 -07:00
Ryan Nowak 2d62553122 Fix an out-of-date comment 2015-07-09 12:31:22 -07:00
Kiran Challa 28dfa0f0c4 Added SQL Server Cache to the sample. 2015-07-09 11:07:29 -07:00
unknown c6aa9371c7 Updating protocol.extensions package version from beta5 to beta6 2015-07-08 17:26:03 -07:00
Ryan Nowak 48bfdceea6 Add basic startup experience for MVC.Core 2015-07-08 17:16:07 -07:00
Ryan Nowak fe52c0c0cb React to removal of Authentication 2015-07-08 15:52:17 -07:00
KevinDockx 580914d873 Refactoring to get ready for JsonPatch (for dynamics) support. Relay generic typing to outer-facing contract. 2015-07-08 15:06:32 -07:00
Hao Kung 46bc7dd219 Switch to shared security helper 2015-07-08 15:02:11 -07:00
Hao Kung efc35302e8 Switch to shared security helper 2015-07-08 15:01:09 -07:00
Ryan Nowak ccb2f2deda React to move of StatusCodes 2015-07-08 12:43:33 -07:00
Chris R 57031946d0 #214 Refactor OIDC state parameters. 2015-07-08 12:21:14 -07:00
Chris R 534becad6b #182 Move StatusCodes from WebUtilities to Http.Abstractions. 2015-07-08 09:55:32 -07:00
mikary bbd57217f2 React to API change in DependencyInjection 2015-07-07 14:40:20 -07:00
Kiran Challa 76028af354 Added wwwroot folder 2015-07-07 13:53:45 -07:00
RehanSaeed 545fa9e70a Added MIME Types
Added the following MIME types which I have found to be missing:

.json - application/json (This one is pretty unbelievable)
.ttc - application/x-font-ttf
.webp - image/webp
.appcache - text/cache-manifest
.manifest - text/cache-manifest

Also the following MIME types need updating:

.ttf should be application/x-font-ttf and not application/octet-stream
2015-07-07 20:30:21 +01:00
Arthur Vickers 11e14de7e9 React to EF renaming 2015-07-07 10:10:38 -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
Stephen Halter 0670b7ae61 Ensure all the C# files have copyright notices 2015-07-06 17:49:00 -07:00
Stephen Halter 4b66edc4fe Move non-nested classes and interfaces to their own files 2015-07-06 17:48:58 -07:00
sornaks 57f1ae755f Optimizing TagBuilder.CreateSanitizedId to create buffer only when needed.
- Tested with a page containing 33% of invalid Ids which go through TagBuilder.CreateSanitizedId.
- Ran 10,000 requests with 20 in parallel and measured perf.
- Data before the change:
System.String allocated by CreateSanitizedId: 1.84 mb
System.Text.StringBuilder allocated by CreateSanitizedId: 1.68 mb
- Data after the change:
System.String allocated by CreateSanitizedId: 0.720 mb
System.Text.StringBuilder allocated by CreateSanitizedId: 0.560 mb

Around 60% improvement from the original case.
2015-07-06 17:19:38 -07:00
Eilon Lipton 4b18bfb494 Rename builder extension types to have more specific names 2015-07-06 16:35:44 -07:00
ASP.NET Push Bot 79587f81ef ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: AspNet/kvm@f5cc09aefd
2015-07-06 11:42:51 -07:00
Eilon Lipton 0a250fd79c Merge pull request #49 from hishamco/format
Remove extra comma from project.json
2015-07-06 08:49:59 -07:00
Hisham Abdullah Bin Ateya bce1e8f5b4 Remove extra comma from project.json 2015-07-05 05:36:50 +03:00
N. Taylor Mullen fc2019c973 Modify `TypeConverterModelBinder`'s `ModelBindingResult.IsModelSet` to be false when model value is `null` for non-null accepting types.
- Previously `ModelBindingResult.IsModelSet` would be set to true if type conversions resulted in empty => `null` values for ValueTypes. This resulted in improper usage of `ModelBindingResult`s creating null ref exceptions in certain cases.
- Updated existing functional test to account for new behavior. Previously it was handling the null ref exception by stating that errors were simply invalid; now we can provide a more distinct error.
- Added unit test to validate `TypeConverterModelBinder` does what it's supposed to when conversions result in null values.
- Added additional integration tests for `TypeConverterModelBinder`.

#2720
2015-07-02 20:03:32 -07:00
sornaks 68523a3550 Fixing tests in Mono.
- Disabling tests which have corresponding bugs in mono.
- Fixing a few tests which do not handle *nix file system.
- Updating Travis configuration to use mono's alpha bits.
- Introducing PlatformNormalizer to normalize content across multiple platforms.
2015-07-02 17:24:14 -07:00
sornaks 7606c81482 Renaming - file case. 2015-07-02 14:20:10 -07:00
Hao Kung 3321adbe64 Add test verifying passwords are salted 2015-07-02 12:22:21 -07:00
Kirthi Krishnamraju 38748b54eb [JsonPatch]: Added NotNull attribute to parameters and updated comments 2015-07-02 12:19:38 -07:00
Hao Kung 85d2d3d46a Reenable Functional tests/Fix security stamp 2015-07-02 12:10:36 -07:00
Kiran Challa d9b136e20d 'Refresh' the session even when its not accessed in current request #41 2015-07-02 09:50:31 -07:00
Victor Hurdugaci 039cc18e8b Fix typo in project.json 2015-07-01 20:41:03 -07:00