Commit Graph

43822 Commits

Author SHA1 Message Date
Ben Adams fa8fe3d085 Complete sync-blocked calls directly 2016-01-19 22:38:08 +00:00
moozzyk 10964cc04f Disabling parallel restore on Mac and Linux 2016-01-19 14:14:41 -08:00
Andrew Stanton-Nurse 2e02adcfc7 Update _dotnet-restore.shade 2016-01-19 12:39:42 -08:00
Andrew Stanton-Nurse 2564e466e4 Remove --parallel
Now that dotnet cli is using NuGet, it's parallel by default!
2016-01-19 12:26:52 -08:00
John Luo ac21b9538d Reacting to Identity API change 2016-01-19 11:13:05 -08:00
ryanbrandenburg a229b20c48 * StringOutput set proper ContentType 2016-01-19 10:06:30 -08:00
Brennan 3f84e992f4 Make StreamCopyOperation public and update it to same as StaticFiles 2016-01-19 10:03:26 -08:00
Brennan 9c6b081ebc Use HttpAbstractions StreamCopy 2016-01-19 09:56:51 -08:00
Brennan 1cae0695f7 Remove IsLocal 2016-01-19 08:50:17 -08:00
Brennan 63cd6149d1 Removed IsLocal from ConnectionInfo 2016-01-19 08:37:47 -08:00
Brennan 1f21540fd5 Remove IsLocal 2016-01-19 08:35:53 -08:00
Ben Adams d3d9c8d546 Write async chunks async 2016-01-18 13:39:13 +00:00
Doug Bunting 2810858905 Add `HtmlEncoder` parameter to `RazorPage.StartTagHelperWritingScope()`
- aspnet/Razor#643 part 2: react to aspnet/Razor#653
 - change test calls and delegates to include new parameter
 - add tests specifically of the new feature
 - add tag helpers using new feature to `TagHelpersTest` functional test
- note `HtmlEncoder`s used elsewhere e.g. in other `RazorPage` instances are unaffected
 - i.e. changing one `RazorPage.HtmlEncoder` property only affects C# expressions in that page

Also simplify scope management, removing bizarre assertion when user does something odd.

nits:
- correct `// Act` and `//  Act & Assert` content
- remove #YOLO wrapping
2016-01-17 22:59:59 -08:00
Doug Bunting 37850b5d85 Add `TagHelperOutput.GetChildContentAsync()` overloads including an `HtmlEncoder`
- #643 part 1
- change is viral and requires an update to `RazorPage.StartTagHelperWritingScope()`
  - memoize `GetChildContentAsync()` per-encoder
  - update generation tests to match and to test new behaviour
- note `HtmlEncoder`s used elsewhere e.g. in other `RazorPage` instances are unaffected

Add `NullHtmlEncoder`

Nits:
- generally clean up affected doc comments and make them more consistent
- remove unused `using`s in files I had open
2016-01-17 22:34:19 -08:00
John Luo 30db1b0497 Reacting to hosting rename 2016-01-17 18:18:36 -08:00
John Luo 1d9be8728e Reacting to hosting rename 2016-01-17 18:16:09 -08:00
John Luo 249673f2bc Reacting to hosting rename 2016-01-17 18:13:26 -08:00
John Luo 0bd2e3281d Reacting to hosting rename 2016-01-17 17:56:43 -08:00
John Luo f08e1f9428 Reacting to hosting rename 2016-01-17 17:56:18 -08:00
John Luo 9ae4e9e3dd Reacting to hosting rename 2016-01-17 17:34:55 -08:00
John Luo 34e3d14d78 Reacting to hosting rename 2016-01-17 17:28:32 -08:00
John Luo 7ab5f67708 Reacting to hosting rename 2016-01-17 17:22:39 -08:00
John Luo 0f9875df0a Reacting to hosting rename 2016-01-17 17:09:38 -08:00
John Luo 115e89d6f8 Reacting to hosting rename 2016-01-17 17:08:20 -08:00
John Luo 6a3ae53108 Reacting to hosting rename 2016-01-17 17:05:04 -08:00
John Luo 5a284732af Reacting to hosting rename 2016-01-17 16:49:26 -08:00
John Luo 5135a8938e Reacting to hosting rename 2016-01-17 16:43:28 -08:00
John Luo 2c1317d3c6 Adding .vs to gitignore 2016-01-17 16:36:03 -08:00
John Luo 9885377148 Reacting to hosting rename 2016-01-17 16:34:17 -08:00
John Luo 488187ff79 Reacting to hosting rename 2016-01-17 16:33:48 -08:00
John Luo f49864c413 Reacting to hosting rename 2016-01-17 16:32:45 -08:00
John Luo 8ff779778c Reacting to hosting rename 2016-01-17 16:21:39 -08:00
John Luo cad9ea1df7 Rename WebApplication to WebHost 2016-01-17 15:31:29 -08:00
David Fowler 0673acedc4 Added overload of Run that triggers shutdown on a cancellation token
- Added test
- Changed NotifyStopped() after all work has been done
2016-01-16 11:24:43 +00:00
Victor Hurdugaci 10fdfcc5c8 Build with dotnet 2016-01-15 20:54:35 -08:00
Pranav K 2baafc3699 Specify Newtonsoft.Json version to ViewFeatures to sort out disambiguity. 2016-01-15 16:13:32 -08:00
Pranav K cf9221df07 Pool JsonSerializer instances
Fixes #3550
2016-01-15 16:13:31 -08:00
Ryan Nowak e68c55ab41 Rewrite of tokenizers 2016-01-15 15:58:27 -08:00
Victor Hurdugaci 9e032102f6 Build with dotnet 2016-01-15 15:53:26 -08:00
N. Taylor Mullen 1ce9180a3e Prevent unneeded allocations of `Block` children enumerators.
#635
2016-01-15 15:47:35 -08:00
Pranav K 9ad62d7963 Updating to Newtonsoft.Json 8.0.2 2016-01-15 15:36:29 -08:00
Hao Kung 2e1a8b31cd Rename Delegate => AssertionRequirement
And moar sugar...
2016-01-15 14:47:33 -08:00
Victor Hurdugaci 3277f68768 Build with dotnet 2016-01-15 14:18:01 -08:00
Victor Hurdugaci 3e1b55701a Install xunit.core 2016-01-15 12:05:55 -08:00
Ryan Nowak 315d79ff2b Make the CodeWriter more efficient 2016-01-15 11:04:32 -08:00
Pranav K 9bc8cc1def Updating CLI _k-standard-goals to remove use of dnu pack
Fixes #355
2016-01-15 10:46:30 -08:00
Ryan Nowak 08fef95969 Remove a String.Split 2016-01-15 10:38:08 -08:00
moozzyk 4d4dfedd59 dotnet-publish-iis refactoring
- moving command logic to a dedicated class
- adding logic for reading webroot value from a parameter, hosting.json file and folder structure
- reading application name from project.json instead of a parameter
2016-01-15 10:36:38 -08:00
Nate McMaster dd81654b33 Fix path to korebuild folder in bash script 2016-01-15 09:56:50 -08:00
Doug Bunting fa8c2eac3e Check encoded and unencoded values against element body in `OptionTagHelper`
- #3386
- initialize comparison `HashSet` with unencoded values to ensure both are checked
- address perf and correctness issues in this code
  - `context.Items[typeof(SelectTagHelper)]` entry read as `ICollection` but written as `IReadOnlyCollection`
    - `IReadOnlyCollection` worse because it does not include `Contains()`, causing Linq use
  - every `<option>` element recalculated the encoded values and created a `HashSet` to contain them
    - add `CurrentValues` type to cache this `HashSet` in `context.Items`
  - each `OptionTagHelper` created the additional `HashSet` even if `Value` was bound
2016-01-14 17:46:54 -08:00