Commit Graph

27752 Commits

Author SHA1 Message Date
SteveSandersonMS 301657a207 Enable inline source maps 2015-11-02 11:32:32 -08:00
SteveSandersonMS 60d77e7b92 Add ES2015 runtime transpilation sample 2015-11-02 11:15:34 -08:00
SteveSandersonMS f693bd60e3 Initial state 2015-11-02 10:30:36 -08:00
Doug Bunting ff91e796c1 Revert "Fixing tests"
- wrong fix especially now that test encoders work as expected
- touch up `HtmlHelperTest` and `RazorViewTest` since test encoders are now consistent
- remove references to old `Microsoft.Extensions.WebEncoders.Testing` package

This reverts commit a9d5876cd9.
- but leave `FormTagHelperTest` and `ValidationMessageTagHelperTest` cleanup alone

nit: use `string.Empty` in `HtmlHelperLinkGenerationTest`
2015-11-02 09:45:56 -08:00
Doug Bunting 037196d5c7 Restore `null` and `string.Empty` handling from `EncoderExtensions`
- prior test encoders were never invoked for `null` or empty `string`s e.g.
``` c#
    public static void HtmlEncode(this IHtmlEncoder htmlEncoder, string value, TextWriter output)
    {
...
        if (!String.IsNullOrEmpty(value))
        {
            htmlEncoder.HtmlEncode(value, 0, value.Length, output);
        }
    }
```
- add missing `null` checks and handle `string.Empty` in `TextWriter output, string value, ...` overloads
  - better match for the underlying `TextEncoder` behaviour
  - `EncoderExtensions` provided an API like `TextEncoder.Encode(TextWriter output, string value)`
    - that method calls `Encode(TextWriter output, string value, int startIndex, int characterCount)`
2015-11-02 09:40:42 -08:00
damianedwards e93a00c2c4 Fix the sample:
- Configure Kestrel properly
2015-11-01 21:08:01 -08:00
Eilon Lipton 0e1fa2e09d Create LICENSE.txt 2015-11-01 17:26:35 -08:00
Eilon Lipton d77a8aa7a2 Create CONTRIBUTING.md 2015-11-01 17:26:21 -08:00
Eilon Lipton ec4482b20d Create README.md 2015-11-01 17:25:55 -08:00
Ben Adams ea6f6b10dc Don't capture connection on closure 2015-11-01 13:27:17 +00:00
Chris R a6a17f296d React to ServerFactory changes. 2015-10-31 07:35:42 -07:00
Pranav K c0b9dd1208 Reacting to RequestDelegate rename 2015-10-30 19:00:26 -07:00
Pranav K a9d5876cd9 Fixing tests 2015-10-30 18:58:33 -07:00
Ben Adams dd7c4b374d Fix LibuvCopier DNXCore compile error 2015-10-31 01:53:24 +00:00
Chris R 52f4a83139 React to WebEncoders changes. 2015-10-30 17:59:19 -07:00
John Luo 5f91ce2f2b Reacting to Hosting changes 2015-10-30 16:51:16 -07:00
John Luo facf3ad0da Missed update for test when reacting to hosting changes 2015-10-30 16:18:50 -07:00
Cesar Blum Silveira e934f5e4ed Strong name everything. 2015-10-30 15:36:55 -07:00
John Luo b466c3b7d7 Reacting to Hosting changes 2015-10-30 14:19:55 -07:00
John Luo c71c7a3810 Reacting to RequestDelegate namespace change 2015-10-30 14:14:34 -07:00
Doug Bunting 53060be2d7 Content negotiation fails in subsequent requests accepting same media type
- #3140
- clone `MediaTypeHeaderValue` instance before updating it when content negotiation succeeds
  - avoids changes to `MediaTypeConstants` properties and `OutputFormatter.SupportedMediaTypes` entries
  - `MediaTypeHeaderValue.Clone()` does not exist in our DNX Core fork of this class
  - in previous implementation, was called defensively rather than when required
- update `WebApiCompatShimBasicTest` functional tests to use `MvcTestFixture<TStartup>` everywhere
  - #3140 blocked that final migration
  - remove `TestHelper` since it's no longer referenced

nits:
- remove comments mentioning `TestHelper`
- correct spelling of "negotiation"
2015-10-30 14:10:31 -07:00
John Luo 83f20ece7d Reacting to RequestDelegate namespace change 2015-10-30 13:58:05 -07:00
John Luo 092f689c6a Reacting to Hosting IServerFactory refactoring 2015-10-30 13:00:53 -07:00
John Luo 3933a1904e Refactoring IServerFactory #395 2015-10-30 13:00:07 -07:00
Cesar Blum Silveira 8a06966024 Strong name Microsoft.AspNet.JsonPatch. 2015-10-30 12:57:49 -07:00
ryanbrandenburg 5763eb580a * Move logging to new style 2015-10-30 12:43:17 -07:00
David Fowler c80946260a Change the namespace of RequestDelegate
- change it to Microsoft.AspNet.Http
2015-10-30 12:25:21 -07:00
Chris R b773229333 React to WebEncoders changes. 2015-10-30 11:49:04 -07:00
Chris R 84cfe5640d React to WebEncoders changes. 2015-10-30 11:45:48 -07:00
Chris R 1a59b385a0 React to WebEncoders changes. 2015-10-30 11:39:39 -07:00
Chris R 99aa148342 Remove un-used namespace. 2015-10-30 10:56:00 -07:00
Pavel Krymets af2c32f612 React to xunit change. Fix build error 2015-10-30 10:52:59 -07:00
Chris R 99901ed4fe React to HtmlEncoder type changes. 2015-10-30 10:49:35 -07:00
Chris R 21373740c7 React to WebEncoders change. 2015-10-30 10:39:39 -07:00
Scott Addie 3c46662d91 Delete unused config.json file from MvcSample.Web 2015-10-30 10:25:12 -07:00
Chris R 7b9e3adcf3 Remove deleted WebEncoders.Core package from NuGetPackageVerifier 2015-10-30 10:23:47 -07:00
Muchiachio bd9fc5dc68 Using IsDefined over GetCustomAttribute<T>
- Replaced Type.GetCustomAttribute<T> with Type.IsDefined where the
attribute instance is only used to check if it's defined, to increase
performance.

Resolves #3416
2015-10-30 10:19:22 -07:00
Pranav K 08be63c3fc Add ForbiddenResult
Fixes #3242
2015-10-30 10:13:58 -07:00
Chris R be4fb46281 #391 Migrate to System.Text.Encoding.Web 2015-10-30 10:13:02 -07:00
Ryan Nowak 1312ed8b71 Remove Linq and boxed Enumerator allocations from conneg 2015-10-29 18:40:22 -07:00
N. Taylor Mullen 5ad1a27f6e React to aspnet/Razor#580.
- Updated `MvcRazorHost` to configure `Type` full names.
- Updated code generation tests.
2015-10-29 16:26:00 -07:00
N. Taylor Mullen 978e2bb474 React to aspnet/Razor#196.
- `TagHelper`s now auto-fill enums. Updated files to reflect new auto-filling enum changes.
2015-10-29 16:24:56 -07:00
N. Taylor Mullen a76f16cda8 Removed `TagHelper` infrastructure `using` statements.
- The using statements had a chance to conflict with user code. Removed them and changed the default configured type names to be `global::` full name based.
- Updated test file `TagHelperDescriptor.TypeName`s to have namespaces to make them easier to read.

#580
2015-10-29 16:23:38 -07:00
Pranav K f177f0c760 Add ForbidAsync overload for automatic authentication scheme. 2015-10-29 14:55:39 -07:00
Chris R 36c267843a Merge branch 'release' into dev 2015-10-29 14:51:02 -07:00
Stephen Halter 4ad38625c7 Get the current runtime path via PlatformServices.Default
- This fixes an issue whith ApplicationDeployer on Mono.
  Instead of giving the dnx path, Process.GetCurrentProcess().MainModule.FileName
  would give the path to the Mono executable.
2015-10-29 14:50:51 -07:00
Chris R 1db7574ad6 Update to release NuGet.config for AzureAd. 2015-10-29 14:49:20 -07:00
N. Taylor Mullen d361c3a716 Update `TagHelperSample` conditionalcomment page. 2015-10-29 14:36:20 -07:00
Stephen Halter 777f523135 Update System.Net.Sockets dependency in test project to 4.1.0
- This only affects the test project
- The Socket.*Async extension methods are available for net46 but not net451
  so we ifdef.
2015-10-29 14:31:44 -07:00
Stephen Halter fe654598f6 Merge branch 'release' into dev 2015-10-29 14:30:02 -07:00