Commit Graph

40898 Commits

Author SHA1 Message Date
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
ASP.NET Push Bot a4314d1b30 ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@879aa15baf
2015-10-29 15:49:37 -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
Stephen Halter 85202b0174 Merge branch 'benaadams/read-to-null-buffer' into release 2015-10-29 12:24:40 -07:00
Stephen Halter 1722150ee9 Do nothing in KestrelThread.Stop if libuv fails to load
This prevents DllNotFoundExceptions from being masked by NullReferenceExceptions
2015-10-29 12:21:25 -07:00
Rowan Miller 9247f6624c Merge branch 'release' into dev 2015-10-29 12:06:18 -07:00
Pavel Krymets e4d1259da5 Remove usage of CallContextLocator 2015-10-29 12:06:12 -07:00
Victor Hurdugaci 0b14bc135b Show type load exception on the startup error page 2015-10-29 11:43:31 -07:00
Rowan Miller ddf6a45f80 💚 Skip LocalDb dependent test on Mono
Some tests rely on LocalDb and therefore do not run on Mac/Linux. We
have https://github.com/aspnet/Diagnostics/issues/176 open to address
this, but in the meantime some of the tests are skipped. Adding one more
test that we missed.
2015-10-29 11:42:57 -07:00
Troy Dai e9a6061023 Make Frame implements IHttpConnectionFeature
Provide RemoteIPAddress as well as RemotePort
2015-10-29 10:08:35 -07:00
N. Taylor Mullen 33b37d6554 React to aspnet/Razor#196.
- Razor `TagHelper`s now special case `enum` values so you don't need to provide the entire `enum` prefix.
2015-10-29 10:06:43 -07:00
N. Taylor Mullen 22ecf85f88 Added `TagHelper` support for `enum`s.
- If a `TagHelper` attribute is an `enum` then you no longer need to provide the `enum` name. To override this functionality you can add the `@` symbol.
- Added code generation tests.
- Added `TagHelperDescriptorFactoryTest`s that double for Precompilation tests.

#196
2015-10-29 10:04:07 -07:00
Chris R 54451cb6fa Merge branch 'release' into dev 2015-10-29 08:24:24 -07:00
Chris R 995f0ca92f #452 Rename Microsoft.AspNet.Hosting.json to hosting.json. 2015-10-29 08:21:30 -07:00
Pranav K 89d116ae98 Merge branch 'release' into dev 2015-10-28 19:12:38 -07:00
Pranav K 6d2b1e447b Adding System.Runtime to unbreak build 2015-10-28 19:12:17 -07:00
Doug Bunting a69a7a6940 Simplify instrumentation confirmations in `RazorPageExecutionInstrumentationTest`
- test class can now use the `MvcTestFixture`
  - #3139 part 3 of 3
- dump instrumentation data at end of `_Layout.cshtml`
  - include `FilePath` in display
  - compare against new `.html` resource

nits:
- normalize line endings to CRLF for consistency with other tests
- add `InstrumentionData` to avoid `Tuple`
- make `TestPageExecutionContext` class `private`
- remove newly-unused actions and associated `.cshtml` files
2015-10-28 16:45:30 -07:00
Doug Bunting dc32f8ae33 PR comments: Restore most of `PrecompilationTest.PrecompiledView_RendersCorrectly()` 2015-10-28 16:40:28 -07:00
Doug Bunting c8c0c5303e Remove more `TestHelper` functional tests
- remove tests already thoroughly covered in unit tests
  - #3139 part 2 of 3
- make checks of `<form>` tag helper more consistent with others
  - use a tag helper initializer but testing every variant; covered in unit tests
- remove `MvcStartupTest` and associated web site
  - scenario covered elsewhere
- remove `PrecompilationTest.PrecompiledView_RendersCorrectly()`
  - scenario covered elsewhere and shouldn't do I/O on checked-in files
2015-10-28 16:40:13 -07:00
Kiran Challa f3384d97cb Merge branch 'release' into dev 2015-10-28 15:55:12 -07:00
Kiran Challa 2bb2f95532 Log messages from HostingEngine are sometimes null #454 2015-10-28 15:51:36 -07:00
Doug Bunting ff19702db5 Remove `WaitService`
- use `MvcTestFixture` instead of `TestHelper`
  - part of #3139
- continue to test e2e interaction of `FlushAsync()` with sections, partials, et cetera
- remove `FlushPointTest.FlushBeforeCallingLayout()`
  - `RazorPageTest.FlushAsync_ThrowsIfTheLayoutHasBeenSet()` unit test covers the scenario
2015-10-28 15:47:16 -07:00
Ben Adams bdadc8a3da Move comment into loop, remove noop 2015-10-28 22:44:35 +00:00
ASP.NET Push Bot 9adc66547d ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@ed0017b7e2
2015-10-28 12:59:08 -07:00
Pranav K d8697fe985 Merge branch 'release' into dev 2015-10-28 12:52:31 -07:00
Pranav K a335257339 Merge branch 'release' into dev 2015-10-28 12:52:22 -07:00
Pranav K f3d589f474 Merge branch 'release' into dev 2015-10-28 12:51:54 -07:00
Pranav K b4eb423e07 Merge branch 'release' into dev 2015-10-28 12:51:49 -07:00
Pranav K 58adcbce69 Merge branch 'release' into dev 2015-10-28 12:51:40 -07:00
Pranav K a909e63d4e Merge branch 'release' into dev 2015-10-28 12:51:36 -07:00
Pranav K 8389149a1c Merge branch 'release' into dev 2015-10-28 12:51:31 -07:00
Pranav K f2f2b98605 Merge branch 'release' into dev 2015-10-28 12:51:26 -07:00
Pranav K 728eff1c4d Merge branch 'release' into dev 2015-10-28 12:51:22 -07:00