Commit Graph

27752 Commits

Author SHA1 Message Date
Louis DeJardin f6dc72544c Response headers don't need to be queued before subsequent write 2015-08-03 16:20:24 -07:00
Louis DeJardin c0728edda7 Linq .Any() was causing enumeration 2015-08-03 16:20:22 -07:00
Louis DeJardin f9cf9f1936 Improvements to appending request header 2015-08-03 16:20:20 -07:00
Louis DeJardin 96b03ee212 Perf - enumerate with struct
Conflicts:
	src/Microsoft.AspNet.Server.Kestrel/project.json
2015-08-03 16:20:18 -07:00
Louis DeJardin ad089be477 Removing "I like pie" diagnostics 2015-08-03 16:20:16 -07:00
Louis DeJardin 963f086eb0 Prototypeing a fast header dictionary
Conflicts:
	src/Microsoft.AspNet.Server.Kestrel/project.json
2015-08-03 16:20:14 -07:00
Mikael Mengistu ab56ac6038 Added headers to store original IP, host, and protocol values 2015-08-03 16:04:56 -07:00
N. Taylor Mullen 0ef68eefc8 Added default `UrlResolutionTagHelper` to resolve app relative URLs.
- Razor removed the ability to automatically resolve URLs prefixed with `~/`; therefore `ScriptTagHelper`, `LinkTagHelper` and `ImageTagHelper` have changed to take in `IUrlHelper`s and auto-resolve their URL based properties if they start with `~/`.
- Added a catch-all `~/` resolver for non `TagHelper` based HTML elements. Razor used to resolve any attribute value that started with `~/` now the behavior is restricted to attributes that can contain URLs.
- Updated `IUrlHelper` to accept `null` values.
- Added functional tests to validate that URLs resolve correctly.
- Updated `TagHelper` tests to ensure that URLs are resolved via an `IUrlHelper`.

#2807
2015-08-03 16:00:33 -07:00
Chris R b138f2a460 React to IFeatureCollection API changes. 2015-08-03 15:46:01 -07:00
Chris R 83b2c95385 React to IFeatureCollection changes. 2015-08-03 15:13:58 -07:00
Chris R aa34e5e46e React to IFeatureCollection changes.
Use a static feature collection.
2015-08-03 15:08:39 -07:00
N. Taylor Mullen 6d228a62dc Added missing `HtmlAttributeNotBound` to `ViewContext` property.
- Did not add a test to validate the behavior. None of the other `TagHelper`s validate that a property is not visible/bound.

#2901
2015-08-03 15:05:08 -07:00
Chris R ac945a0bcf #339 Reduce IFeatureCollection surface area. 2015-08-03 14:55:25 -07:00
Ajay Bhargav Baaskaran 2792f10f9a [Fixes #2862] asp-append-version now works with urls containing fragment 2015-08-03 12:06:18 -07:00
Dejan Paležević 4a9029fc9c Used nameof expression to resolve parameters name 2015-08-03 11:56:04 -07:00
Pranav K fe9bf8bcbf Remove the use of Regex in the TemplateRouteParser
Fixes #164
2015-08-03 11:13:57 -07:00
sornaks 5d7ec0e2c6 Changing QueryHelpers.AddQueryString to use Array instead of List. 2015-08-03 11:08:54 -07:00
Ryan Nowak 68c52adef4 Fix #2837 - Make it easier to get ParameterInfo/PropertyInfo
For a typical configuration, it's now possible to cast a parameter
descriptor to ControllerParameterDescriptor or
ControllerBoundPropertyDescriptor to access the corresponding reflection
type.
2015-08-03 10:53:33 -07:00
N. Taylor Mullen 48a6b567d6 Remove ~/ handling from core Razor.
- Removed parsing, chunk generation and code generation.
- Removed related tests.
- Did not modify existing unrelated tests with ~/ since it's just plain text and may be valid for end-users.

#427
2015-07-31 15:55:29 -07:00
N. Taylor Mullen c8df81ef91 React to aspnet/Razor#459. 2015-07-31 15:47:29 -07:00
N. Taylor Mullen a8fd85db1e Add ability to execute child content more than once.
- Added a boolean overload that specifies whether the user wants to retrieve cached content.
- Added tests to validate `TagHelperExecutionContext` `GetChildContentAsync` and that `TagHelperContext` passes the appropriate values through.

#459
2015-07-31 15:23:49 -07:00
Pranav K e0abf70a80 Reacting to DI changes 2015-07-31 14:32:32 -07:00
anurse 0926e0c280 react to DNX renames 2015-07-31 13:48:22 -07:00
mikary c0255f4188 React to aspnet/EntityFramework#2757 2015-07-31 12:38:57 -07:00
mikary 80e9d35630 React to DNX renames 2015-07-31 12:38:40 -07:00
anurse 07304640ed react to DNX renames 2015-07-31 11:54:52 -07:00
anurse 712b1d1aec fix build 2015-07-31 11:48:21 -07:00
Brennan be06eec7ba Install Libuv on Travis 2015-07-31 11:32:01 -07:00
Chris R 84203a5d45 React to OpenIdConnectMessage namespace change. 2015-07-31 11:09:29 -07:00
Stephen Halter 6da15a65b2 Additional testing using app funcs that throw exceptions 2015-07-30 16:02:39 -07:00
Stephen Halter 4a9515d2e0 Gracefully handle uncaught exceptions in user code when possible 2015-07-30 16:01:33 -07:00
Stephen Halter b2289b9a54 Disable parallel test execution
- MultipleLoopTests and NetworkingTests seem to interfere with each other.
2015-07-30 15:20:22 -07:00
unknown b85db5e8c0 Reacting to namespace changes in identitypackages - beta7 update 2015-07-30 13:11:08 -07:00
Troy Dai 07de3cafd1 Clean build warnings 2015-07-30 12:14:13 -07:00
Hisham Abdullah Bin Ateya c228b65d47 Make 'DefaultCookieName' static readonly field instead of a property
DefaultCookieName as Constant

Add empty line
2015-07-30 11:44:27 -07:00
Victor Hurdugaci 84192cb1a9 Fix the casing of a pacakge reference. It is causing cross plat issues 2015-07-30 11:39:28 -07:00
Hisham Abdullah Bin Ateya 01d0b5db22 Reformat project.json
Reformat project.json

Fix typo
2015-07-30 11:26:14 -07:00
Ajay Bhargav Baaskaran e4049c07eb Razor boolean and null attribute special case handled correctly
- Issue #2769
 - Special case is only applied to null and bool value with no surrounding
   whitespace
2015-07-30 10:37:38 -07:00
Hisham Abdullah Bin Ateya 59d957df31 Simplify generating culture names
Replace '\n' with Environment.NewLine
2015-07-30 10:01:01 -07:00
Hisham Abdullah Bin Ateya 5f83c0df43 Rename Microsoft.Framework.Localization.Test to Microsoft.Framework.Localization.Tests
Microsoft.Framework.Localization.Test -> Microsoft.Framework.Localization.Tests

Rename the .xproj

Rename the solution file
2015-07-30 09:50:26 -07:00
Dejan Paležević 6a285ce70a Removed unnecessary blank line 2015-07-30 16:56:49 +02:00
Hisham Abdullah Bin Ateya dd8d0aa078 Add repository information 2015-07-30 07:51:55 +03:00
Pranav K ae27f7d321 Updating InlineRouteParameterParserTests to perform Assert.Equal \
Assert.Collection instead of Assert.Single.

This gives more accurate failures in case the assertions fail.
2015-07-29 18:27:12 -07:00
Doug Bunting 260ac2939e Align `TagHelperOutputExtensionsTest.CaseSensitiveTagHelperAttributeComparer` with Razor.Runtime version
- was missing `Minimized` comparison
2015-07-29 15:44:03 -07:00
Pranav K 7120b2ff92 Removing MvcViewEngineDescriptor and switching to use OptionsSetup to
setup RazorViewEngine.

Fixes #2269
2015-07-29 14:14:07 -07:00
Victor Hurdugaci abcd7c87a0 Fix incorrect namespace 2015-07-29 12:01:26 -07:00
Victor Hurdugaci 04c33bffd0 React to DNX renames 2015-07-29 11:49:38 -07:00
mishfit 466c441882 show how to exit
- grammer
- verbiage
2015-07-29 11:37:48 -07:00
Mikael Mengistu 09f492e4a6 Added a middleware to handle header overrides. Initial check in. 2015-07-29 11:37:11 -07:00
Victor Hurdugaci b407fa056e React to DNX renames 2015-07-29 11:28:06 -07:00