Commit Graph

6500 Commits

Author SHA1 Message Date
Pavel Krymets f8192fd63c
Workaround corefx/26390 (#295) 2018-01-17 10:39:07 -08:00
Stephen Halter cf371a4e74
Disable heartbeat warning when debugger is attached (#2258) 2018-01-16 18:11:11 -08:00
pan-wang 7b65bdb6ef
Panwang/addinglog (#508)
* adding windows event log

* adding windows event log

* fix a wrong bool variable

* some updates

* fix bad merge
2018-01-16 17:21:47 -08:00
Stephen Halter f4d27e67bb
Improve server shutdown logic (#2247)
Ensure connections abort when they don't close gracefully.
2018-01-16 16:43:45 -08:00
Hao Kung 5d2f598c80 Update initial migrations 2018-01-16 14:44:29 -08:00
Javier Calvarro Nelson e6bb551018 Adds support for loading the developer certificate from a pfx file
* If we can't find a developer certificate on the certificate store
  we will look for a developer certificate on the file system if a
  password has been specified for the Development certificate.
* We will look at ${APPDATA}/ASP.NET/https/<<AppName>>.pfx for windows
  and fallback to ${HOME}/.aspnet/https/<<AppName>>.pfx
* In case the password wasn't specified through configuration, the file
  is not found on the file system or can't be loaded, we won't
  do anything.
2018-01-12 16:32:06 -08:00
Kiran Challa e5de4e672c Marked Antiforgery cookie as essential
Related to https://github.com/aspnet/Home/issues/2408 : Determine if the antiforgery cookie is considered essential
2018-01-12 11:06:47 -08:00
Jass Bagga 57697baedb
Tolerate leading "~/" or "/" (#509) 2018-01-11 13:00:01 -08:00
= 1c4d23f79d Add TFM compatibility check to 2.1 metapackage 2018-01-11 12:37:11 -08:00
Javier Calvarro Nelson a036fa6bf4 Add support for cleaning certificates on the machine to the dev-certs tool 2018-01-11 11:26:39 -08:00
Kiran Challa d2c27104dd Throwing AntiforgeryValidationException for failure to deserializing tokens 2018-01-10 15:03:54 -08:00
Jass Bagga 93d20ec78c
Revert Dispatcher changes (#508)
Addresses aspnet/Home#2741
2018-01-10 12:53:17 -08:00
Chris Ross (ASP.NET) 420500e2a9 #2102 Always start the response before draining the request. 2018-01-09 15:59:19 -08:00
Steffen Forkmann 9a8dd6ef12 Allow Content-Length 0 for Websocket-Connection (#2217) 2018-01-09 15:01:09 -08:00
Chris Ross (ASP.NET) eabde9fe9e Add CookiePolicy and consent UI 2018-01-09 12:42:07 -08:00
Jass Bagga 8ebe0a2d29
Derive Web API templates from ControllerBase (#220)
Addresses #45
2018-01-08 15:08:43 -08:00
Justin Kotalik ee6256d941
Update sample to use aspnetcore.dll and aspnetcorerh.dll (#512) 2018-01-08 12:02:58 -08:00
Jass Bagga 95c663a289
Handle malformed origin Uri (#139)
Addresses aspnet/Home#2318
2018-01-08 11:04:57 -08:00
Nate McMaster 48ed4a6997 Package aspnetcorerh in Microsoft.AspNetCore.Server.IIS 2018-01-08 10:15:06 -08:00
Chris Ross (ASP.NET) ce69341265 Add ITrackingConsentFeature.CreateConsentCookie 2018-01-05 12:04:50 -08:00
Jass Bagga da3a49a9b0
Add HttpsPort settings to Empty F# template (#219) 2018-01-05 11:08:47 -08:00
Chris Ross (ASP.NET) ad2149f5f0 Change ApplicationProtocol to ReadOnlyMemory<byte> #2182 2018-01-05 09:25:30 -08:00
Stephen Halter 664055fa43 Revert "Change ApplicationProtocol to ReadOnlyMemory<byte> #2182"
This reverts commit 2d3a01d48d.
2018-01-04 16:17:36 -08:00
Chris Ross (ASP.NET) 2d3a01d48d Change ApplicationProtocol to ReadOnlyMemory<byte> #2182 2018-01-04 15:26:40 -08:00
Jass Bagga 8502900c18
Add Dispatcher packages descriptions (#507)
Addresses aspnet/Home#2656
2018-01-04 11:02:05 -08:00
Phillip Carter 5b34474502 Update F# templates (#190) 2018-01-04 10:56:54 -08:00
Justin Kotalik c3bc6fed9c
Adds RequestHandler dll and hostfxr changes from ANCM (#497) 2018-01-04 10:07:00 -08:00
Pavel Krymets 8cedb4eff3
React to pipeline changes (#503) 2018-01-04 10:01:16 -08:00
Pavel Krymets 1fa001e7db
React to pipeline changes (#2234)
React to pipeline changes
2018-01-04 09:54:42 -08:00
Steve Sanderson 22da82ff8a Sync remaining Angular-CSharp changes from OOB release into dev branch 2018-01-04 11:10:35 +00:00
Steve Sanderson 0d9f17211f Fix @angular/platform-server version in package-lock.json 2018-01-04 11:01:28 +00:00
Steve Sanderson c637130f88 In React and ReactRedux templates, switch from npm-shrinkwrap.json to package-lock.json 2018-01-04 11:01:19 +00:00
Steve Sanderson 27878265bc Update Angular template to Angular CLI 1.6.3, plus switch it from npm-shrinkwrap.json to package-lock.json 2018-01-04 11:01:01 +00:00
Jass Bagga c66d5240d1
Recreate cache of endpoints when data source updated (#503)
Addresses #454
2018-01-03 14:33:16 -08:00
Justin Kotalik 5d8670243c
Use location of aspnetcore.dll rather than the activating process. (#500) 2018-01-03 11:49:43 -08:00
Steve Sanderson d6588c31bf In Angular CLI middleware, remove additional level of timeouts since it's now covered upstream. Part of #1447 2018-01-03 11:47:17 +00:00
Justin Kotalik 119dee607b
Remove use of Dangerous Span calls for MemoryMarshal (#501) 2018-01-02 13:59:49 -08:00
Chris Ross (ASP.NET) 63c2f43ce5 AuthenticationProperties code cleanup 2018-01-02 11:30:45 -08:00
Scott Addie 323453129d Remove yarn.lock file entry from .gitignore files 2018-01-02 16:16:47 +00:00
Steve Sanderson 15d2f5a898 Allow explicit configuration of StaticFileOptions in new SPA APIs. Fixes #1424. 2018-01-02 15:44:59 +00:00
Steve Sanderson 814441c933 Allow configuration of SPA startup timeout. Part of #1447 2018-01-02 14:15:33 +00:00
Steve Sanderson a98c1459b5 When a SPA dev server (or prerendering build) takes too long to start up, only fail current request, not future requests. Fixes #1447 2018-01-02 14:15:20 +00:00
Steve Sanderson fa386c458b Remove bogus BuildServerSideRenderer property from React-Redux csproj. #1457 2018-01-02 12:14:30 +00:00
Jass Bagga 9ad731bc33
Remove max-width from site.css for F# Starter Web template (#214) 2017-12-29 15:52:30 -08:00
Nate McMaster 26833a02b1
Remove DotNetCliToolReference to dotnet-user-secrets (#212) 2017-12-29 14:27:31 -08:00
Justin Kotalik d59b0ef38c Adds universe manifest and signing info 2017-12-29 12:48:01 -08:00
Murat Girgin 4e568c9266 Fixing a typo (#279) 2017-12-29 12:48:01 -08:00
Javier Calvarro Nelson 5325c65b88 Replace identity code with built-in version on the templates 2017-12-29 11:45:10 -08:00
Nate McMaster 261b27b700 Port CLI tools to be dotnet global tools
- Rename package IDs to dotnet-watch, dotnet-user-secrets, and dotnet-sql-cache
- Change packaging layout to support dotnet-install-tool
- Change package metadata to DotnetTool
- Drop support for DotNetCliToolReference (those will continue to be available under previous package ID's)
- Rename project files and folders
2017-12-29 08:42:36 -08:00
Javier Calvarro Nelson 8c94d27d6a [Fixes #181] Go back to server selected listening ports. 2017-12-28 19:00:29 -08:00
Jass Bagga 886a985726 Target netcoreapp2.1 2017-12-28 17:01:30 -08:00
Kiran Challa f8692d14e4 Add logging to RangeHelper.cs 2017-12-28 13:33:11 -08:00
Ryan Brandenburg 87db08e030 Add missing baselines 2017-12-28 11:46:56 -08:00
Chris Ross 32bfa03875
Fix comment and exception typos. (#983) 2017-12-28 08:35:04 -08:00
Chris Ross (ASP.NET) ac702f6818 Add the cookie IsEssential flag and feature 2017-12-27 13:28:12 -08:00
Justin Kotalik f27190a1f1 Adds InProcessHandler to calls, Refactor to remove IHttpContext completely 2017-12-22 13:36:34 -08:00
lundog 9aaaefbb1b Initialize RequestCookieCollection case insensitive (#981)
* Initialize RequestCookieCollection case insensitive

* Call RequestCookieCollection constructor directly
2017-12-22 11:55:06 -08:00
Chris Ross (ASP.NET) 7511a4da7f Add kestrel config to CreateDefaultBuilder 2017-12-21 14:51:34 -08:00
Pavel Krymets 0125769f8a
Use SiteExtension.Sdk in Microsoft.AspNetCore.AzureAppServices.SiteExtension (#128) 2017-12-21 11:12:30 -08:00
Chris Ross (ASP.NET) dfaf37cbba Implement config support #1290 #1879 #2016 #2166 #2167 #2188 2017-12-21 09:12:32 -08:00
user1336 db3c3ba589 Ensure HeaderDictionary store is initialized consistently (#979) 2017-12-21 08:50:32 -08:00
ASP.NET CI fa9d7a7e8c Update dependencies.props
[auto-updated: dependencies]
2017-12-20 13:46:28 -08:00
BrennanConroy 2cf020103a Update to new corefx packages (#486) 2017-12-20 13:46:27 -08:00
pan-wang 30bbd87d81 Panwang/refactor (#277)
* Init check in for refactoring

* clean up to make app_offline work

* update loadassembly and build

* add configpath to aspnetcore_config to make recycle work

* Adds in process component to refactor (#249)

* outprocess first checkin (still missing marjor components)

* Adds In-Process support for shimmed module. (#257)

* Init check in for refactoring

* clean up to make app_offline work

* update loadassembly and build

* add configpath to aspnetcore_config to make recycle work

* Adds in process component to refactor (#249)

* outprocess first checkin (still missing marjor components)

* Adds In-Process support for shimmed module. (#257)

* load from bin start and catch unhandled exception

* Fixes request handler vcxproj

* Adds request handler to nuget package

* build issues

* outofprocess refactoring

* adding logging support

* enforce Warning As Error for build and enable process recycle for outofprocess

* fix AV for win32 build and update build flags

* Fixed m_srwLock lock issue

* remove dealock in loadmanagedapp and remove UseMFC

* Readd lost exception catching

* nuget package issue and status code

* fixing warnings

* Adds Headers

* removing web sockets exe for now

* remove flags

* nuspec stuff

* spelling

* only look in inetsvr for now (or same folder)

* rename method

* terminte thread before closing the handle to it

* couple changes related with AV

* null check and Kill thread for in process if dotnet timed out

* fix recursive lock issue reported by appverifier

* client disconnect support AV fix

* flow 502.5 process start failure error page

* Feedback from inperson code review
2017-12-20 13:46:27 -08:00
Pavel Krymets 8570f1e0c0
Move site extensions out from src (#131) 2017-12-20 12:11:26 -08:00
Pavel Krymets dee673ea09
Build site extensions in main build chain (#130) 2017-12-20 10:52:11 -08:00
Pavel Krymets 3a0a133a02
Remove use of Dangerous* Span APIs and use MemoryMarshal instead (#2228) 2017-12-19 11:33:39 -08:00
Justin Kotalik 150bb3faf4
Add BindingAddress to HttpAbstractions (#977) 2017-12-18 18:40:11 -08:00
Chris Ross (ASP.NET) d505d20ba7 Merge Kestrel.Https into Kestrel.Core. Fix sample. 2017-12-18 14:08:14 -08:00
Jass Bagga e7749b9ccc
return ReturnUrl when ExternalLogin fails (#186)
Addresses #97
2017-12-14 10:29:36 -08:00
Jass Bagga eb74ea32f1
Add app.config to net 4.x templates (#191)
Addresses #73
2017-12-13 11:12:12 -08:00
Jass Bagga 6eaf1219f6
Use nameof() when returning Views (#196) 2017-12-13 11:11:32 -08:00
Nate McMaster 2aaed28054
Rename dotnet-developercertificates to dotnet-dev-certs (#371) 2017-12-12 15:56:48 -08:00
Nate McMaster 1f3f010f87 Upgrade CLI tools to .NET Core 2.1 2017-12-12 14:37:47 -08:00
Biarity 13e4025dac Using nameof() instead of hard-coded string. (#188) 2017-12-12 12:05:06 -08:00
Jass Bagga 26ea920fa6
Set LoginProvider when ExternalLoginConfirmation fails (#187)
Addresses #98
2017-12-12 11:27:11 -08:00
Steve Sanderson 8ded472fe9 Add status code support to SpaPrerenderingExtensions 2017-12-12 12:28:31 +00:00
Pavel Krymets f4236a1dde
Split KeyVault hosting startup into separate separate package (#126) 2017-12-11 11:12:46 -08:00
BrennanConroy 95dc8824c3
Upgrade package references and react to corefx API changes (#2212) 2017-12-11 09:02:37 -08:00
Javier Calvarro Nelson 4d2e642b94 Add launchSettings.json by default to our templates
* Adds launchSettings.json to all of our templates.
* Provides an alternative flag to exclude it.
* Adds HTTPS support in launchSettings.json.
* Re-adds HTTPS redirect and HSTS middleware for C# templates.
* Improves some infrastructure aspects:
    * Prefix all our test projects with AspNet.Template to allow easy
      killing of orphaned processes.
    * Setup an HTTPS certificate automatically for use with tests in the
      same way our tooling does it on customers machines.
    * Switch from OS selected ports to randomly selected ports. This is
      required as we need to know the port to use for HTTPS.
    * Allow disabling browser automation through an environment variable.
    * Setup Firefox to allow untrusted certificates when using Selenium.
    * Allow running Selenium tests on firefox by setting an environment
      variable.
2017-12-08 13:08:36 -08:00
Justin Kotalik 8949f49637 merged 2017-12-07 18:55:29 -08:00
Pranav K 16c23b846e Split showing and generating recovery codes 2017-12-07 15:47:00 -08:00
Pranav K e4ecd070eb Use AuthenticatorUrl generated on the server in EnableAuthenticator pages
* Update prerelease package versions
* Install the right CLI version
2017-12-07 15:45:54 -08:00
Jass Bagga bc95a4a6c1
Add missing @ (#184)
Addresses #183
2017-12-07 15:45:34 -08:00
Jass Bagga ed9e34caab
Set ErrorViewModel in ConfirmEmail (#180)
Addresses #80
2017-12-07 12:44:48 -08:00
Jass Bagga 88e05f71a5
Add no-cache header to error pages (#182)
Addresses #123
2017-12-07 12:11:44 -08:00
John Luo 911264eb04 Clean up shared framework generation. 2017-12-07 11:00:24 -08:00
Justin Kotalik 9f1e6607dd
Changes OS bitness check to Environment rather than System.Runtime.InteropServices.RuntimeInformation (#1286) 2017-12-05 15:17:15 -08:00
Jass Bagga aba10e768b
Remove user.Id from ResetPasswordCallbackLink (#173)
Addresses #71
2017-12-05 12:44:37 -08:00
Jass Bagga f5dcdfd8de
Encode ForgotPassword email link (#179) 2017-12-05 12:38:19 -08:00
John Luo e0daa126e2 Produce aspnetcore shared framework 2017-12-05 12:15:30 -08:00
John Goldsmith 74512dc3b2 Change HMR install to devDependencies
Changing hot module replacement install from dependencies to devDependencies.  Raised in this Issue: https://github.com/aspnet/JavaScriptServices/issues/1409
2017-12-05 10:42:15 +00:00
Stephen Halter 668f8e3b4b
Lazily allocate protocol-specific connection objects (#2190)
* Refactor Http[12]?Connection
2017-12-04 15:59:12 -08:00
Jass Bagga 269cff5bf5
Change parameter name to htmlMessage (#178)
Addresses #79
2017-12-04 13:00:57 -08:00
David Fowler b8a1c04ffb
Make the HttpParser a singleton (#2203)
- It's completely stateless so make it a singleton
- Fixed tests
2017-12-03 13:27:36 -08:00
Pavel Krymets c07d699f0f
Add AspNetCore runtime site extension (#118) 2017-12-01 09:42:49 -08:00
Ryan Brandenburg 7c2c5f2bef EnableApiCheck for Kestrel.Https (#2198) 2017-11-30 18:36:35 -08:00
Pranav K f121d9c688 Split out version specification from ExternalDependency initialization 2017-11-30 16:31:55 -08:00
Jass Bagga 5819301f7e
Change Web API to API (#169)
Addresses #92
2017-11-30 16:15:04 -08:00
Pavel Krymets db6c04818e
Add application model detection package (#119) 2017-11-30 15:00:03 -08:00
Luke Latham 940c71eaf8 Correct spelling in summary (#975) 2017-11-30 13:51:33 -08:00
Nate McMaster 6f096a18af Import dependencies.props when building the metapackage 2017-11-29 13:02:37 -08:00
Tornhoof 5e9e3a8574 Make sure to add whitespace after the status code even if the reasonphrase is empty (#2184) 2017-11-29 12:30:27 -08:00
John Luo 1219e97e27 Avoid LOH
Limit is 85000 bytes not 85*1024 bytes
2017-11-28 15:42:52 -08:00
Nate McMaster 98de3aa50d
Suppress API check due to reflection load errors (#2185)
[ci skip]
2017-11-28 11:04:08 -08:00
David Fowler ce68427050
Use ALPN support in SSLStream on .NET Core >= 2.1 (#2179)
- Always add the TlsConnectionFeature when the HttpsConnectionAdapter runs
- Implemented the ITlsApplicationProtocolsFeature on the existing TlsConnectionFeature
- Removed Kestrel.Tls
2017-11-27 09:11:39 -08:00
Steve Sanderson 599d5ed73d Minor stylistic tweaks in Aurelia template 2017-11-24 13:30:35 +00:00
Max 9e82629c1f Add AureliaPlugin to the vendor bundle
This will put aurelia modules into the bundle from the correct distribution folder
2017-11-24 13:26:51 +00:00
Scott Addie 3a4c81dcc9 Change order of UseBrowserLink method invocation 2017-11-24 10:31:39 +00:00
Scott Addie af23185c06 Change order of UseBrowserLink method invocation 2017-11-24 10:30:48 +00:00
Scott Addie a68c7241b5 Invoke a simpler UseMvc overload in Razor Pages templates 2017-11-24 10:22:24 +00:00
Scott Addie 529ef02290 Invoke a simpler UseMvc overload in Razor Pages templates 2017-11-24 10:18:56 +00:00
Steve Sanderson 5d7e31d16f Minor simplifications to Vue fetchdata logic 2017-11-24 10:07:49 +00:00
Murat Girgin 5e752169d6 Vue.js template: Use async/await 2017-11-24 09:58:53 +00:00
Meir017 02bbcb68f1 fixed docs on SocketNodeInstance
namespace was incorrect
2017-11-24 09:53:35 +00:00
Steve Sanderson 40603f1566 In Angular template, make nav button collapsing work (without importing all bootstrap.js scripts) 2017-11-23 12:22:58 +00:00
Steve Sanderson 77afab3b58 In Angular template, add --output-hashing=media to build:ssr as it's needed for 1.5.4 prod builds 2017-11-23 11:49:04 +00:00
Steve Sanderson 98f29207a2 Support running "dotnet restore" directly in template source folders 2017-11-23 11:49:04 +00:00
Steve Sanderson bf6942e616 For Angular CLI 1.5.4 compatibility, build SPA to ClientApp/dist and serve its static files from there 2017-11-23 11:49:01 +00:00
Steve Sanderson c517ad3f65 For Angular template, update to @angular/cli 1.5.4 equivalent output 2017-11-23 10:38:31 +00:00
Pranav K 076e5fe6af Fixup name of SystemServiceProcessServiceControllerPackageVersion 2017-11-22 14:52:27 -08:00
Chris Ross 8e1da5d1f6
Expose WebHostBuilderContext in UseKestrel #1334 (#2177) 2017-11-22 10:19:17 -08:00
Pranav K db8adaf5b7 Remove uses of aspnetcore-ci-dev 2017-11-22 09:28:47 -08:00
Steve Sanderson 7fe5fe2393 Remove "--output-hashing=media" from Angular package.json as it's no longer needed 2017-11-22 17:28:13 +00:00
Steve Sanderson 505ebcf1e6 Update to newer Angular SSR APIs to support AoT-enabled builds 2017-11-22 15:18:52 +00:00
Steve Sanderson 18140929e7 Make AngularCliBuilder provide better information about timeouts 2017-11-22 15:14:58 +00:00
Jass Bagga 54e96bd404
Tolerate leading "~/" or "/" (#499)
Addresses #441
2017-11-21 14:20:17 -08:00
John Luo a24ae8bd16 Typo while correcting for feedback 2017-11-20 17:19:55 -08:00
John Luo aff78a04af Update property name to match naming scheme 2017-11-20 15:51:17 -08:00
Henk Mollema e03c6a7908 Cross-compile Windows Services hosting package 2017-11-20 15:40:50 -08:00
Jass Bagga 1b0258ab8f
Move AddEntryToTree to shared source (#496)
Addresses #495
2017-11-20 14:18:50 -08:00
John Luo 19e943e6b9 Update base key
- Add Scheme, Host, Port and PathBase
2017-11-20 12:45:28 -08:00
David Fowler a1d75df47d Use new Memory<byte> APIs on SocketAsyncEventArgs (#2173)
- This should improve the performance of handling buffers by (eventually)
removing GCHandle churn for Kestrel's already pinned buffers.
- Made the Sockets transport target both netcoreapp2.1 and netstandard2.0 to use new
APIs
- Disable API check for the sockets transport
2017-11-20 11:36:09 -08:00
Steve Sanderson 7f6abdfcdd Remove remaining Bower references. Fixes #161. 2017-11-20 16:54:25 +00:00
Steve Sanderson f79fa6e110 Remove remaining references to HttpsPolicy until it's ready 2017-11-20 10:13:24 +00:00
Stephen Halter 67fc879c54
Null out send buffer less (#2164) 2017-11-17 12:41:35 -08:00
Javier Calvarro Nelson 2dc3e36421 Fix F# Program.fs 2017-11-17 11:27:57 -08:00
Justin Kotalik 9d9daa8db7
Removes Https middlewares from templates (#157) 2017-11-17 11:02:10 -08:00
Steve Sanderson 2623b50695 Update info on SPA template home components 2017-11-17 16:43:38 +00:00
Steve Sanderson 993655a7af Remove SPA templates' instruction to run "npm install" manually, since that's now automatic 2017-11-17 16:22:35 +00:00
Steve Sanderson 9b1509a52b Handle @angular/cli not accept requests immediately on startup 2017-11-17 14:56:47 +00:00
Chris Ross (ASP.NET) 89d1862f21 #2139 Add ListenLocalhost and ListenAnyIP 2017-11-16 16:14:17 -08:00
Justin Kotalik 85ea220c4e
Fixes dotnet.exe string as runtime now reads it (#246) 2017-11-16 15:05:32 -08:00
Luke Latham 30acb48dfc
Add blank lines 2017-11-16 12:47:11 -06:00
Chris Ross 476333771c
#955 Print available scheme names in exception message for invalid scheme (#961) 2017-11-16 09:17:57 -08:00
Steve Sanderson 1d9585b69d Replace Angular, React, ReactRedux templates with new CLI based ones 2017-11-16 13:48:17 +00:00
Steve Sanderson 68c4620a55 Consider React dev server ready when it starts listening, not when (and if) it compiles successfully 2017-11-16 09:48:38 +00:00
Steve Sanderson 296435e40c When capturing prerendering template, avoid problems with HTTP compression 2017-11-16 09:34:18 +00:00
pan-wang 9e345ad43f
fix build issue (#248) 2017-11-15 21:59:54 -08:00
Javier Calvarro Nelson 6c4427cde5 Added a package for generating HTTPS Certificates on CLI first run scenarios 2017-11-15 18:20:17 -08:00
Jass Bagga e2bcefc3d0
Move TreeEnumerator to shared source (#494) 2017-11-15 11:17:59 -08:00
Justin Kotalik 0b8b099e82
Adds contentRoot to ANCM path (#1272) 2017-11-15 10:32:00 -08:00
Justin Kotalik afb36d9667
Files put in contentFiles are not actually in contentFiles (#1269) 2017-11-14 15:00:26 -08:00
Justin Kotalik 726da0f11f
Fix HttpsPolicy dependency for full framework (#151) 2017-11-14 11:59:41 -08:00
Justin Kotalik f27a5a674e
Updates ANCM path to look in content files (#1268) 2017-11-14 11:39:21 -08:00
Chris Ross (ASP.NET) cfd974337d Improved request error handling. 2017-11-14 10:37:55 -08:00
Chris Ross (ASP.NET) cd3f58bed7 #1263 Delay IServer and Startup.Configure until StartAsync 2017-11-14 09:19:25 -08:00
Pranav K 8fece7e7bb Update samples and tests to target netcoreapp2.1 2017-11-13 17:12:02 -08:00
Andrew Stanton-Nurse 065e9bb57a
Update "temporary" OpenSSL wrapper to support 1.1, and add HTTP/2 sample with docker (#2149) 2017-11-13 15:54:16 -08:00
Pavel Krymets b8c3d26975
Migrate to new pipe APIs (#454) 2017-11-13 15:06:22 -08:00
Pavel Krymets 73a37363e1
Migrate to new pipe APIs (#2124) 2017-11-13 15:04:54 -08:00
Jass Bagga 7f8ba171f4
Move UrlMatchingTree to shared source (#492)
Addresses #489
2017-11-13 11:40:26 -08:00
Javier Calvarro Nelson eac0e2d03b Add support for detecting when the user cancels the trust prompt and a mode to check for the validity and trust of existing certificates 2017-11-13 10:28:46 -08:00
Steve Sanderson aeabbdcada Stop create-react-app from opening an extra browser tab (pointed to the wrong port) 2017-11-13 12:51:18 +00:00
Steve Sanderson 96d7f85327 Add UseReactDevelopmentServer() middleware. Factor out common code. 2017-11-13 12:35:41 +00:00
Steve Sanderson 30333e250a AddSpaStaticFiles/UseSpaStaticFiles APIs to clean up the React template (or other cases where SPA files are outside wwwroot) 2017-11-13 10:54:12 +00:00
Justin Kotalik 82e096c9a5
Adds windows auth support (#241) 2017-11-10 17:07:56 -08:00
Justin Kotalik 552163ab77
Adds windows Auth support (#471) 2017-11-10 17:02:31 -08:00
Pranav K 311a92ddee React to change in sdk that causes dotnet run to print restore output 2017-11-10 14:57:53 -08:00
Justin Kotalik 3c727be270
Fix path check for ANCM (#1262) 2017-11-10 12:27:51 -08:00
Justin Kotalik 67c028a3cf
React to ANCM dll location changes (#1258) 2017-11-10 11:55:31 -08:00
Justin Kotalik 40bd6e560e
Adds HostingModel as an extra DeploymentParameter (#1261) 2017-11-10 10:07:19 -08:00
David Fowler a78b9c7490
Support the Extensions.Abstractions from Hosting.Abstractions (#1259)
- The goal here is to enable components that use hosting abstractions to use
the web host. It lets us start to decouple components from the web host abstractions
where possible while not breaking any existing components. This will allow things
to work in both the generic host and the web host. The one snafu is the WebHostBuilderContext
which has an IHostingEnvironment typed as the AspNetCore.Abstractions type.
- Updated tests.

#1218
2017-11-09 21:24:30 -08:00
Steve Sanderson 08002e961b In WebpackDevMiddleware.ts, support loading Webpack config files with __esModule. Fixes #1378 2017-11-09 16:57:57 -08:00
Chris Ross (ASP.NET) 05fd382b93 #1256 Check HasStarted for StatusCode and ReasonPhrase 2017-11-09 13:04:51 -08:00
Chris Ross (ASP.NET) 64596d538b TestServer: Copy the feature collection to mitigate multi-threading 2017-11-09 13:04:51 -08:00
Chris Ross (ASP.NET) 1e556e0b46 #1253 TestServer: mark response headers IsReadOnly on start 2017-11-09 13:04:37 -08:00
Steve Sanderson 0c77224f46 Allow prerendering middleware to pass through non-prerendered responses (important when using dev middleware) 2017-11-09 10:44:30 -08:00
Steve Sanderson a83ec3a053 ArgumentNullException -> ArgumentException 2017-11-09 10:30:52 -08:00
Steve Sanderson a16343681b Rename BuildOnDemand to BootModuleBuilder 2017-11-09 10:25:48 -08:00
Steve Sanderson c8b337ebaa Add new Microsoft.AspNetCore.SpaServices.Extensions package to host new runtime functionality needed for updated templates until 2.1 ships 2017-11-09 10:09:13 -08:00
Nate McMaster dae1f1ce78 Merge branch 'rel/2.0.3' into dev 2017-11-08 16:31:07 -08:00
John Luo 993cd9f73d Trigger graceful shutdown on stopping webhost service 2017-11-08 11:06:36 -08:00
Nate McMaster 6c8af17e3a
Add placeholder package descriptions to fix NuGetPackageVerifier errors (#490)
Merged to unblock CI. cref #491 to update the packages with tags and real package descriptions
2017-11-08 09:43:55 -08:00
Andrew Stanton-Nurse 89fa8f0fa2 Revert "Open ssl pfx (#2150)"
This reverts commit 41abe63c10.
2017-11-07 15:48:49 -08:00
Tim Seaward 41abe63c10 Open ssl pfx (#2150) 2017-11-07 14:49:02 -08:00
Stephen Halter 238da2742d
Use SocketAsyncEventArgs to improve perf (#2147) 2017-11-07 14:43:14 -08:00
arerlend 70c8133fce allow paths that contain '.' (#125)
* allow paths that contain '.'

* remove InvalidPathWithDotShouldThrowException test
2017-11-07 11:24:52 -08:00
Jass Bagga fd83b300b8
Port TreeMatcher (#488)
Addresses #472
2017-11-07 10:51:50 -08:00
Justin Kotalik 9c065bf107
Remove header serialization in favor of setting IIS response directly. (#465) 2017-11-06 20:28:40 -08:00
Justin Kotalik 6bfcd4a2d4
Remove header serialization in favor of setting IIS response directly. (#228) 2017-11-06 20:28:08 -08:00
Chris Ross 3e3772eecd
Implement read-only HeaderDictionary (#958) 2017-11-06 20:03:49 -08:00
azechi f287c46bad Fix exception message for AuthenticationScheme (#960) 2017-11-06 18:38:01 -08:00
Nate McMaster aee0d26d67 Merge build infrastructure changes from rel/2.0.3
Changes:
- Replaces PackageLineup with the dependencies.props approach to manage package versions.
- Generate the csproj/fsproj files that go into template packages
- Remove the DependencyUpdater and PullRequestSubmitter tasks
- Remove bower.json and bowerrc from Microsoft.DotNet.Web.ProjectTemplates
- Set MyGet feeds via MSBuild instead of NuGet.config
- Upgrades to the functional tests
- Update Selenium
- Make it possible to run tests on macOS/linux
- Disable test parallelization
2017-11-06 16:06:24 -08:00
Nate McMaster 18feba377f Rename Microsoft.DotNet.Web.ProjectTemplates.2.0.nuspec -> Microsoft.DotNet.Web.ProjectTemplates.nuspec 2017-11-06 16:00:13 -08:00
Nate McMaster 09161305bb Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1

Changes:
Remove the 2.0 and 1.x templates projects from this branch
2017-11-06 15:54:02 -08:00
Nate McMaster 1ffcf2c009 Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1
2017-11-06 10:19:59 -08:00
George Chakhidze c315b27ad9 Fix the uninitialized g_hWinHttpModule global variable to avoid empty error messages (#225) 2017-11-06 10:16:08 -08:00
Chris Ross e2dcbea4ec
#907 Clarify the encoding requirements for Response.Redirect. (#956) 2017-11-03 15:52:59 -07:00
Nate McMaster 2d98a1808c Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-03 15:09:19 -07:00
David Fowler 08186bb198
Use ipv4 when binding to ANCM port (#470)
- Today we use localhost which binds to both the ipv4 and ipv6 addresses.
ANCM never communicates over ipv6 so it's pointless. This should also properly crash
the process if the ipv4 address fails to bind (which we've seen reports in real applications for).
2017-11-03 10:24:41 -07:00
Chris Ross 936f82874a
Release pins before disposal (#412) 2017-11-02 19:34:12 -07:00
Nate McMaster b40a1a5a8c Upgrade tools and dependencies 2017-11-02 14:35:39 -07:00
Jass Bagga 3fadca6a1b
Add IConstraintFactory (#487)
Addresses part of #472
2017-11-02 10:57:37 -07:00
Nate McMaster 5bbab01ba5 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 16:52:00 -07:00
Nate McMaster 555f5c68ee Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 16:47:47 -07:00
Nate McMaster f7f89cdf8f Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 16:45:58 -07:00
Nate McMaster f4fb178f55 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 16:32:09 -07:00
Nate McMaster f616f3e891 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 16:27:57 -07:00
Justin Kotalik a42c8a33b8
Return FINISH_REQUEST on request failure (#469) 2017-11-01 15:48:04 -07:00
Nate McMaster 6c82f78c65 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 15:18:49 -07:00
Nate McMaster 478c640a68 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 15:11:36 -07:00
Nate McMaster bcc10d3012 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 14:59:02 -07:00
Nate McMaster db210af712 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 14:42:41 -07:00
Justin Kotalik 06bff32f4e
Fix missed reorder of HttpsRedirection calls in spa templates (#140) 2017-11-01 12:52:10 -07:00
Chris Ross (ASP.NET) 82ccf4f06e #816 Allow directly constructing an HttpContext for TestServer 2017-11-01 11:07:12 -07:00
Justin Kotalik 36fe9b40ef
Adds Hsts and HttpsRedirection to spa templates (#137) 2017-11-01 11:00:13 -07:00
Pavel Krymets c998d74e1d
Set XmlRepository whem setting encryptor in DataProtection light-up (#117) 2017-11-01 10:14:50 -07:00
Nate McMaster 2143ef49c2 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 09:45:38 -07:00
Nate McMaster c0f937239a Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 09:32:44 -07:00
Nate McMaster d687617a35 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 09:29:41 -07:00
Nate McMaster 49b2e22ab3 Pin tool and package versions to make builds more repeatable 2017-11-01 09:09:28 -07:00
Nate McMaster 7ac0e06abf Pin tool and package versions to make builds more repeatable 2017-10-31 19:37:33 -07:00
Nate McMaster 8fd36866f9 Pin tool and package versions to make builds more repeatable 2017-10-31 18:04:49 -07:00
Nate McMaster 1836201bee Pin tool and package versions to make build more repeatable 2017-10-31 17:33:49 -07:00
Justin Kotalik 509f791f10
[WIP] Adds Hsts and HttpsRedirection to templates (#128) 2017-10-31 16:15:13 -07:00
Nate McMaster c5f2333481 Pin tool and package versions to make build more repeatable 2017-10-31 13:04:32 -07:00
Stephen Halter 0c34523e8b
Log exception after critical accept loop error (#2140) 2017-10-31 11:09:11 -07:00
Javier Calvarro Nelson fc613303ed Add an overload that takes the application base path explicitly 2017-10-31 11:02:48 -07:00
Pavel Krymets 9a0064285d
KeyVault HostingStartup (#114) 2017-10-31 10:13:53 -07:00
Chris Ross (ASP.NET) 02331040a1 Dispose of the existing native context before creating a new one. 2017-10-30 21:41:57 -07:00
Nate McMaster f0991b4e6d
Revert changes to the 2.0 templates that were unintentionally copied from dotnet/templating (#135) 2017-10-30 15:49:46 -07:00
pan-wang 2cd59f86c4
client disconnect change (#223) 2017-10-30 10:35:56 -07:00
Pavel Krymets e892ed8bbd
Add a way to prevent specific hosting startup from runnning (#1243) 2017-10-27 16:52:39 -07:00
Jass Bagga 88db534e42
UseExceptionHandler throws if ExceptionHandlingPath not set (#417) 2017-10-27 15:34:34 -07:00
Chris Ross (ASP.NET) 1e360cbb36 #1244 Disable restore on publish for integration tests 2017-10-27 12:20:13 -07:00
Javier Calvarro Nelson f005434e87 Update templates to support the new pattern used for integration tests 2017-10-27 08:56:46 -07:00
Nate McMaster 4984b2da89 Generate the MSBuild files instead of the template.json files to workaround localization issues in the tempalting engine 2017-10-26 16:13:01 -07:00
Ryan Nowak bb413c6ac3 Rename a bunch of old stuff 2017-10-26 12:35:58 -07:00
Ryan Nowak 81ddda7b96 Add MetadataCollection 2017-10-26 12:35:58 -07:00
Ryan Nowak 812fa9599a Reorganize some folders 2017-10-26 12:35:58 -07:00
Ryan Nowak ddcc409353 Move some files in/out of abstractions 2017-10-26 12:35:58 -07:00
Tom Deseyn eeb49c2af7 Pass setsockopt fd as int (#2136) 2017-10-26 11:40:52 -07:00
Nate McMaster df486e54a8 Pin tools and package versions to make builds more repeatable 2017-10-26 09:30:36 -07:00
Scott Addie 1df37f8060 Fix spelling mistake in constant name 2017-10-26 11:27:39 +01:00
Scott Addie 4172d62aa5 Add missing @ symbol to AccessDenied.cshtml 2017-10-26 11:21:43 +01:00
Ryan Nowak d612072d1a Fix a broken MVC test 2017-10-25 23:29:35 -07:00
Ryan Nowak 736b49294d Add Template abstraction
This change adds the Template as a top level abstraction. URL templating
is now a two-stage process.

First you use a 'key' to look up a Template, then you use the Template
to create the URL.

This change also has some cleanup of the way RoutePatternBinder gets
instantiated. I added a factory service so that most of the complex
things can be made internal to Dispatcher. Now it's much easier to
constuct and use. These impacts some pubternal APIs that we already
broke, but makes them actually nice :)

Also cleaned up some tests and fixed one that was broken and not
running.
2017-10-25 22:15:24 -07:00
Nate McMaster 421bcb490f Pin tools and package versions 2017-10-25 17:40:26 -07:00
Nate McMaster b49ffc9e9e Remove All metapackage and runtime store infrastructure (#244) 2017-10-25 17:39:32 -07:00
Andrew Stanton-Nurse ab78fb0b8c fix build break 2017-10-25 15:22:36 -07:00
Ryan Nowak 2d661396df Port TemplateBinder to dispatcher 2017-10-25 14:28:20 -07:00
Jass Bagga eebc7db2ca Use RoutePatternMatcher logic in TemplateMatcher (#484) 2017-10-25 14:16:04 -07:00
Cesar Blum Silveira 8c4bdbcf6b Add "zero config" HTTPS support using local development certificate. (#2093) 2017-10-25 13:59:09 -07:00
Stephen Halter c3ba875d12 Better handle Socket transport accept errors (#2133)
* More reliably swallow accept errors during shutdown
* Handle and log connection reset errors thrown from accept
* Don't trace errors for server-aborted connections
2017-10-25 12:58:00 -07:00
Justin Kotalik 9c5d38a786 Expose VirtualDirectory to In Process mode (#210) 2017-10-25 12:35:47 -07:00
Justin Kotalik 94c895a1bd Parse Path and PathBase from Virtual Directory. (#457) 2017-10-25 12:35:13 -07:00
Andrew Stanton-Nurse 1678c54291 Add some tracing and increase timeout for flaky test (#2130) 2017-10-25 11:56:43 -07:00
Justin Kotalik bd62aa88d7 React to ANCM OnAsyncCompletion changes (#447) 2017-10-25 11:46:55 -07:00
Justin Kotalik 332b108f41 Changes PostCompletion to handle OnAsyncCompletion after managed request has completed. (#212) 2017-10-25 11:46:34 -07:00
Andrew Stanton-Nurse 7d205d1093 add event names to Logging messages (#2132) 2017-10-25 11:27:05 -07:00
pan-wang bfb2c86cda moving export methods to a standalone file (#211) 2017-10-23 16:26:15 -07:00
pan-wang c845a331bb adding forwarding end freb event (#209) 2017-10-23 15:28:48 -07:00
Jass Bagga 485278bf0d Add RoutePatternMatcher to Dispatcher (#482) 2017-10-23 11:20:23 -07:00
Andrew Stanton-Nurse 30010a103b Fix for #2085 - "The Detaskening" (#2123) 2017-10-23 10:52:02 -07:00
Steve Sanderson e583a17ef8 Clean up how IHttpContextAccessor is added 2017-10-23 15:13:33 +01:00
pan-wang 448a2afed8 fix the AV in recycle process, issue #192. (#201)
* fix the AV in recycle process. this is due to we call Recycle again when the background thread exists

* more fixes

* reset hosting mode when all applications got removed
2017-10-21 13:40:45 -07:00
Ryan Nowak bd517f891f Support conversions from RouteTemplate -> RoutePattern 2017-10-20 16:58:14 -07:00
Ryan Nowak df78db934d Port IRouteConstraint to the dispatcher project 2017-10-20 14:04:22 -07:00
Jass Bagga fdc5f21428 Port PathTokenizer (#478) 2017-10-20 13:24:00 -07:00
Ryan Brandenburg bc4a514d9e Better message for integration tests 2017-10-20 10:49:41 -07:00
Jass Bagga e46ba481c8 Throw JsonSerializationException from converters (#116) 2017-10-19 13:32:04 -07:00
Jass Bagga 8eefe0fdc2 Add Test Operation (#114)
Addresses #1
2017-10-19 10:46:08 -07:00
Ryan Nowak 08a64048da Redesign public API for templates
-Renamed RouteTemplate -> RoutePattern
-Made immutable
-Added Builder
-Lots of fixes to parser to support new design

There are a few small issues logged for follow-up but this is mostly in
the place I want it design-wise.
2017-10-19 09:41:45 -07:00
Cesar Blum Silveira 3fbfba63f8 HTTP/2: implement 100-continue (#2106) 2017-10-18 16:31:50 -07:00
Andrew Stanton-Nurse a30befae0f Add abstractions for Health Checks and a simple middleware and service to run them (#408) 2017-10-18 13:52:06 -07:00
Stephen Halter c57aa3b2a8 Treat more exceptions from Socket.ReceiveAsync as aborted connections (#2122) 2017-10-18 12:40:37 -07:00
Chris Ross (ASP.NET) 16ee691c3e #21 Tests for InsertOrAppend xdt transform 2017-10-18 11:00:37 -07:00
George Chakhidze a3c1b6d033 Avoid allocation of a new char array on every request in RouteCollection class
This is a very small micro-optimization: When LowercaseUrls and/or AppendTrailingSlash
options are enabled, on every call to RouteCollection.NormalizeVirtualPath a new
char[] { '?', '#' } is being allocated.
2017-10-17 17:45:15 -07:00
Nate McMaster eb67f8bcef Update package reference versions in more 1.x templates (#72) 2017-10-17 16:28:37 -07:00
Justin Kotalik 68014a7acd Changes async calls to use OnAsyncComplete event pattern (#184) 2017-10-17 16:06:59 -07:00
Nate McMaster 4bb84cf6d0 Ensure the deb/rpm installers use the same dotnet-core version
- Remove unnecessary tasks and scripts
 - Ensure the KOREBUILD_DOTNET_* environment variables are preserved in the docker build context
 - Other MSBuild cleanup of the targets
2017-10-17 15:46:53 -07:00
pan-wang 7117147a09 adding FREB and more ETW log (#185)
* adding FREB log and more ETW logs

* add missing aspnetcore_event.h file from previous commit

* Update aspnetcore_event.h

change provide id as 0x8000 is used by cors
2017-10-17 14:43:31 -07:00
Jass Bagga 3a5cd6dd25 Port TemplateParser to Dispatcher project (#473)
Addresses #466
2017-10-17 11:52:26 -07:00
Javier Calvarro Nelson ff0f112d7b Add HTTPS developer certificate management tool 2017-10-17 11:22:32 -07:00
Ryan Nowak 927f8ed3d2 Add empty baselines for dispatcher
These packages didn't exist in 2.0 so there's no compat bar.
2017-10-17 10:46:03 -07:00
Chris Ross (ASP.NET) 4f3fdaebee #1208 Default timeout for IHost.StopAsync. Create Host with DI. 2017-10-17 10:37:20 -07:00
Javier Calvarro Nelson a80061f42b Move Identity to an Area for 2.1 2017-10-16 10:54:17 -07:00
Stephen Halter 733ac1efab Handle EPIPE like ECONNRESET on Linux (#2112) 2017-10-13 15:07:21 -07:00
Nate McMaster 38be05d442 Update the 1.x templates for the latest patch 2017-10-13 10:08:31 -07:00
Nate McMaster 446de15f0b Add aspnet/Templating to the universe build 2017-10-12 18:02:16 -07:00
Cesar Blum Silveira 9dfffd14bb HTTP/2: support trailers. 2017-10-12 17:26:20 -07:00
Nate McMaster a4ba5a1cb1 Disable tests in parallel 2017-10-12 17:24:37 -07:00
Nate McMaster 5541615008 Automate dependency version selection
- Generate the template config file to include package versions as listed in dependencies.props
 - Update template cs/fsproj files to use variables per package
 - Fixup tests to run better on Linux/macOS
2017-10-12 16:44:55 -07:00
Jass Bagga bdbe922b22 Add logging (#467)
Addresses #439
2017-10-12 14:23:01 -07:00
Nate McMaster 0a82a7376c Merge branch 'rel/2.0.3' into dev 2017-10-12 14:07:00 -07:00
Nate McMaster c770f287a5 Remove the 2.1. templates from the rel/2.0.x branch 2017-10-12 14:03:51 -07:00
Stephen Halter 66a3c9496a Set SO_REUSEADDR on managed listen sockets on Unix (#2111)
- https://github.com/dotnet/corefx/issues/24562
2017-10-12 12:26:52 -07:00
Steve Sanderson 5d0c42ac01 Remove use of Bower from 2.0 templates. Fixes #48 2017-10-12 19:56:22 +01:00
Cesar Blum Silveira deed6c9780 HTTP/2: add exception error messages and log them. 2017-10-12 11:23:57 -07:00
Jonathan 75a7552360 Add Referer to GetTypedHeaders (#949)
* Add a Referer property

* Add Uri to KnownParsers

* Add property for Origin

* Add Origin

* Encode the URI

From feedback from Tratcher

* Inline the var 'out' declaration

* Remove Origin

Since it does not cleanly map to a Uri object since it can contain multiple values.

* Took back that whitespace

* Reverted

* Add using for UriHelper.Encode
2017-10-12 11:00:23 -07:00
Jonathan 01b4530fa7 Add Content-Security-Policy (#950)
* Add Content-Security-Policy

* Add Content-Security-Policy-Report-Only

* Fix previous edit
2017-10-11 21:30:29 -07:00
Javier Calvarro Nelson cda9ec6fe4 Remove the implicit hosting dependency on WebHostBuilderFactory shared sources 2017-10-11 15:16:03 -07:00
Stephen Halter fdb4184dbf Sockets transport (#2100)
* Make Sockets the default transport
* Create separate Libuv and Sockets functional test projects
* Fix functional tests that fail with Sockets
* Moved OneToTenThreads test to Kestrel.Transport.Libuv.Tests
* Fix systemd activation tests to use libuv transport
* Dispose Sockets PipeFactory
* Improve Socket's server-side abort handling
* Add explicit rebinding test
2017-10-11 15:14:35 -07:00
Jass Bagga f1efb29b18 Use ContractResolver instead of forcing to lower case (#112)
Addresses #90
2017-10-11 14:09:35 -07:00
Chris Ross a542d06d9e #38 Remove project attributes that will be added centrally 2017-10-11 10:09:05 -07:00
Cesar Blum Silveira d46d2ce193 HTTP/2: validate request headers prior to starting new stream. 2017-10-10 13:12:34 -07:00
John Luo 633cb68149 Populate WebHost configuration with command line arguments if provided 2017-10-09 14:30:20 -07:00
Jonathan badaa7393b Add header names for CORS (#951) 2017-10-09 11:58:37 -07:00
Nate McMaster 611b6a23ad Update how PackageReference versions are set
Changes:
 - Remove floating versions
 - Disable myget feeds during a Universe build
 - Use package-specific MSBuild variables. Pattern = `packageId.Pascalize() + "PackageVersion"`, with a few exceptions.
 - Remove myget feeds during build
 - Remove obsolete 'GenerateLineup' targets/tasks
2017-10-09 11:32:21 -07:00
Ryan Nowak 56ae2e0177 Respond to feedback about handler factory
- Handler factories are now associated with the dispatcher entry
- Handler factory is now an interface
2017-10-06 10:11:05 -07:00
Justin Kotalik f91a941f8d Moves in-process to UseIISIntegration, removes Server.IIS namespace (#443) 2017-10-06 09:52:42 -07:00
Ryan Nowak 63d2cc4637 Changes due to davidfowl feedback
Changed dispatchers to IMatcher, added a context.

Removed a bunch of outdated cruft and updated the sample to use
attribute-routing like entries.
2017-10-05 18:31:23 -07:00
Jass Bagga 2f8951e244 Productize HttpMethodEndpointSelector (#463)
Addresses #452
2017-10-05 15:14:17 -07:00
pan-wang 746f578c3c Panwang/inproc (#174)
refactoring the code to support inprocess (step 1) with app_offline and Graceful shutdown support
2017-10-04 17:35:11 -07:00
Cesar Blum Silveira 11ce1395e5 HPACK fixes and improvements. 2017-10-04 12:59:41 -07:00
Stephen Halter 156ddfc4e8 Fix EOF handling of TlsStream.ReadAsync (#2094) 2017-10-04 12:38:19 -07:00
Justin Kotalik 36bede16e9 Remove check for using ANCM with Win7. (#1235) 2017-10-03 16:43:12 -07:00
Justin Kotalik ea7bc30dd3 Avoid AV if schema change doesn't exist. (#177) 2017-10-03 14:21:39 -07:00
John Luo 37c12d5a64 Add sources
for the final time
2017-10-03 11:46:57 -07:00
Kristian Hellang 826e89a2d1 Use HttpMethods helpers 2017-10-03 16:58:06 +02:00
John Luo f6fa111333 Another attempt 2017-10-02 19:18:12 -07:00
= 11b25e7c87 Build and pack Runtime Store
- Also add targets to build all metapackage.
2017-10-02 16:43:30 -07:00
Justin Kotalik 9dc69fe361 Adds support for ANCM in process (#425) 2017-10-02 16:01:46 -07:00
John Luo a63932a492 Add option to suppress writing startup messages 2017-10-02 14:08:54 -07:00
Cesar Blum Silveira 1b1137b880 HTTP/2: connection error when receiving frames disallowed by stream states. 2017-10-02 10:24:57 -07:00
Henk Mollema d6a3c3f83e Add helper to register IHttpContextAccessor (#947) 2017-10-02 08:31:12 -07:00
Jass Bagga f49cbd1b25 Selectors initialization and DispatcherBase logging (#451) 2017-09-29 17:50:45 -07:00
Cesar Blum Silveira bb9840a552 HTTP/2: do not ACK PING frames received with ACK set. 2017-09-29 16:40:01 -07:00
Ryan Nowak abb41302e9 Add a dispatcher by default (#462)
This change adds the TreeDispatcher by default to the pipeline. You can
register DispatcherDataSource instances to configure it.
2017-09-29 16:06:38 -07:00
Justin Kotalik b0d91c17f1 Add Strict-Transport-Security header name (#944) 2017-09-29 15:14:46 -07:00
Chris Ross (ASP.NET) be6b099f6c #189 Reduce noise for load and commit logs. 2017-09-29 14:13:51 -07:00
Pavel Krymets a2303c732f Move tests to seperate app (#107) 2017-09-29 08:55:31 -07:00
Ryan Nowak bd750ad76d Making endpoints and addresses easier
This makes endpoints and addresses easier to work with by dropping the
'metadata first' approach for the the things that are really at the core
of the dispatcher.
2017-09-28 22:07:32 -07:00
John Luo 7ec8cc5fad Cleanup and add test for CreateDefaultBuilderOfT 2017-09-28 15:58:14 -07:00
Fanie Reynders 07bf8d02a0 Added support for allowing a shorthand notation to build and run a Webhost with the default configuration including a typed Startup class 2017-09-28 15:05:43 -07:00
Ryan Nowak 5fed462123 Add tree dispatcher 2017-09-27 14:34:09 -07:00
Chris R 321639b0eb Add AuthenticationProperties to AuthenticateResult for failures. 2017-09-27 14:00:55 -07:00
Cesar Blum Silveira 551c1ebc0b Configure enabled protocols per endpoint and add HTTP/2 w/ prior knowledge support (#2067). 2017-09-27 10:14:39 -07:00
Nate McMaster f3bb4080b0 Use CustomAfterMicrosoftCommonTargets in dotnet-user-secrets 2017-09-26 11:59:29 -07:00
Nate McMaster 3dd029a8b5 Simplify the MSBuild targets in dotnet-watch
Use CustomAfterMicrosoftCommonTargets instead of MSBuildProjectExtensionsPath.
 - No more need to write to obj/$(Project).g.dotnetwatch.targets
 - Works on project that have changed default file locations via BaseIntermediateOutputPath

Simplify DotNetWatch targets
 - Condense to one targets file
 - Simplify dependency chain of targets
 - Build project references in a parallel
2017-09-26 11:59:29 -07:00
Ryan Nowak eeebefee1b Add data source 2017-09-26 10:17:48 -07:00
Justin Kotalik 231cbffe1a Create shared package folder for IIS Integration In-process. (#397) 2017-09-25 15:53:33 -07:00
Javier Calvarro Nelson eb9417b577 Re-enable API Check 2017-09-25 15:16:53 -07:00
Justin Kotalik f130330db8 Updating Xunit and dotnet versions (#143) 2017-09-25 15:10:31 -07:00
Javier Calvarro Nelson 49237c7651 Add API check baselines for 2.0 2017-09-25 15:03:09 -07:00
Javier Calvarro Nelson 835ba2218a Update API check baselines to 2.0 2017-09-25 11:41:36 -07:00
Ryan Nowak 7685e17e80 Add Addresses and link generation 2017-09-24 23:16:34 -07:00
Javier Calvarro Nelson 6687f4eefc Update API check baselines to 2.0 2017-09-22 17:52:20 -07:00
Cesar Blum Silveira 343ce0f01b HTTP/2: close connection with PROTOCOL_ERROR when a stream depends on itself. 2017-09-22 16:35:12 -07:00
Javier Calvarro Nelson 475712d613 Update API Check baselines 2017-09-22 14:16:39 -07:00
Ryan Nowak 41f26dc69d Add endpoint disambiguation
- Better sample of metadata
- Sample shows how conventional routing would work
- Added endpoint disambiguation
2017-09-22 10:54:20 -07:00
KPixel 27a3a89b60 Simplifying ApplicationLifetime.ExecuteHandlers() (#1228) 2017-09-22 06:16:48 -07:00
Chris Ross 253be73b6f Misc generic host pr feedback (#1222) 2017-09-21 15:09:52 -07:00
Chris Ross 8a01a1f790 Remove explicit LangVersion (#345) 2017-09-21 15:09:22 -07:00
Pavel Krymets cec21b03f2 Revert 2.0 templates 2017-09-21 14:15:11 -07:00
Pavel Krymets e5a9bd3dd7 Remove IncludeScopes from logger configurations 2017-09-21 14:06:07 -07:00
Cesar Blum Silveira e3533885a8 HTTP/2: close connection with PROTOCOL_ERROR when receiving a frame with an even stream ID. 2017-09-21 12:26:09 -07:00
Hao Kung bab16971ae Add comment for claims transform 2017-09-21 11:57:31 -07:00
Cesar Blum Silveira a4887f4caf HTTP/2: close connection with PROTOCOL_ERROR when receiving GOAWAY frame with non-zero stream ID. 2017-09-21 11:57:31 -07:00
Cesar Blum Silveira fc56552b2a HTTP/2: close connection on PING frame with non-zero stream ID. 2017-09-21 11:23:15 -07:00
Cesar Blum Silveira 555a881cb7 HTTP/2: close connection with PROTOCOL_ERROR when an unknown frame type is interleaved with headers. 2017-09-21 11:20:52 -07:00
Cesar Blum Silveira e2af346733 HTTP/2: close the connection with PROTOCOL_ERROR when a PUSH_PROMISE frame is received. 2017-09-21 11:20:33 -07:00
Ryan Nowak d652b86852 Split RVD in twain 2017-09-21 09:19:10 -07:00
Justin Kotalik 2e540341db Adds in-process mode to ANCM. (#152) 2017-09-20 16:09:56 -07:00
Chris Ross (ASP.NET) e3c7e23cc4 Logging#543 Reorder request disposal due to logging. 2017-09-20 15:28:26 -07:00
Cesar Blum Silveira 9687079723 Check if HTTP/2 frame writer has already been aborted. 2017-09-20 11:15:31 -07:00
Cesar Blum Silveira 9944c0fd43 Fix reading DATA frames with maximum length. 2017-09-20 11:15:31 -07:00
Cesar Blum Silveira c8f9364e3e Expose connection features to HTTP/2 connections. 2017-09-20 11:14:15 -07:00
Chris Ross (ASP.NET) 1e1e89b457 logging/#543 Clear HttpContext.User when the user is disposed. 2017-09-19 15:55:14 -07:00
David Fowler 37e122a0c6 Added overloads without the HostingContext (#1220)
* Added overloads without the HostingContext
2017-09-18 14:48:45 -07:00
Pavel Krymets 46dadbb186 Make RegistryPolicyResolver an interface to fix 3d party DI (#275) 2017-09-18 13:43:45 -07:00
David Fowler 712c992ca8 Add BackgroundService, a base class for long running HostedServices (#1215)
* Add BackgroundService, a base class for long running HostedServices
- Today the IHostedService pattern is a StartAsync/StopAsync pattern. Neither of these
methods are supposed to return a long running task that represents an execution. If
you wanted to have some logic run on a timer every 5 minutes, it's unnatural to do so
with simple async idioms. This base class implements IHostedService and exposes
a pattern where a long running async Task can be returned.
- The token passed into ExecuteAsync represents the lifetime of the execution.
- StartAsync and StopAsync were made virtual to allow the derived type to
indicate Start failures.
- Added tests
2017-09-18 12:55:54 -07:00
Justin Kotalik 500668619f Detect duplicate startups in HostingStartupAssemblies (#1183) 2017-09-18 11:47:34 -07:00
Pavel Krymets f8ee044efa Revert Antares test bundle changes (#220) 2017-09-18 11:01:10 -07:00
Ryan Nowak 134096d9cb Relayer implementation
This refactor introduces two major changes

1. Now creating the 'handler' delegate happens inside the endpoint
middleware. This allows you to short circuit even harder, AND to create
endpoint funcs that capture and use 'next' to rejoin the middleware
pipeline.

2. Relayered the implementation to have routing plug into the dispatcher.
It wasn't immediately apparent to me that this was the right thing to do,
but I think we will need to do things this way to deliver the kind of
back-compat experience we need to do.

The idea that I have is that 'attribute routing' will be the 'default'
entry in the dispatcher. Adding additional conventional routes or other
IRouter-based extensibility will be possible through adapters - but the
default experience will be to add items to the 'attribute route'.

So. We will need to port the attribute routing infrastructure to the
dispatcher library.

We may also need to make RVD into a subclass of something in the
dispatcher assembly.
2017-09-17 18:29:22 -07:00
Javier Calvarro Nelson c24c717eee Add extension methods in our test host package to streamline setup of apps.
* Create a sources package to encode the convention followed in our templates to create a WebHost.
* Add an extension method to setup the content root relative to the solution folder.
* Add a factory method to create a WebHostBuilder based on the pattern followed in our template.
2017-09-15 15:08:35 -07:00
Jass Bagga d22bb2c908 Add logger extensions with event ids (#405)
Addresses #393
2017-09-15 14:26:47 -07:00
Julian Dominguez 1c3fa82908 Preserve state in HostBuilder.Properties (#1212) 2017-09-15 02:00:44 -07:00
Cesar Blum Silveira a31d1e024c Merge code paths duplicated between HTTP/1.x and HTTP/2 implementations (#2017).
- Most of the shared code is in the HttpProtocol class (former Frame)
- Virtual calls handle protocol-specific things
- Move the ProcessRequestsAsync loop to HttpProtocol
- Implement HTTP/1.x request processing in Http1Connection and HTTP/2
  in Http2Stream, with Http1Connection<T> and Http2Stream<T> subclassing
  those classes in order to handle the generic HttpContext parameter
- Split MessageBody into Http1MessageBody and Http2MessageBody,
  with MessageBody containing shared member variables and methods
2017-09-14 17:35:57 -07:00
Jass Bagga b01072eb47 Use RouteTemplate and TemplateMatcher (#443)
Addresses #438
2017-09-14 15:24:40 -07:00
Chris Ross (ASP.NET) ae9da9290e #1163 Implement the generic host 2017-09-14 14:48:06 -07:00
Justin Kotalik 5c2906a7c6 [WIP] Fixing win7 compilation issues. (#141) 2017-09-13 14:40:00 -07:00
Jonathan 5128efe0e8 Fix HTTP capitalization in comment (#931) 2017-09-12 22:19:52 -07:00
Kiran Challa 5eae687ddd Updated EnableCorsAttribute and UseCors extension to not have to supply a policy name. 2017-09-12 17:06:05 -07:00
smarts 2b9516703b Update comments to use correct class name. (#937) 2017-09-12 13:53:04 -07:00
pan-wang a732b106f5 Fix websocket close handshake issue and race condition when websocket client disconnect without close handshake (#151) 2017-09-11 18:44:15 -07:00
Justin Kotalik 509ddc6ced Adds ANCM in-process flag. (#144) 2017-09-11 15:30:54 -07:00
Jass Bagga a9b47f6722 Startup experience (#442)
Addresses #437 and #440
2017-09-11 15:10:33 -07:00
Steve Sanderson c39c1aaa38 Move 2.1 templates to netcoreapp2.0 until we use an SDK that supports netcoreapp2.1 2017-09-11 18:53:59 +01:00
Jass Bagga bf5c043de3 Refactor GetPath in JsonPatchDocumentOfT (#107)
Addresses #98
2017-09-11 09:54:29 -07:00
Pavel Krymets ee009982dc Add KeyVault encryption to DataProtection (#273) 2017-09-11 08:51:56 -07:00
Steve Sanderson 5eeee55b13 Add missing content files for Microsoft.DotNet.Web.ProjectTemplates.2.1 2017-09-11 16:36:06 +01:00
Steve Sanderson 75f955a60a Fix Coherence 2.0.x refs 2017-09-11 16:25:34 +01:00
Steve Sanderson df699bf7b2 Update all SPA projects to use 2.1.x dependencies 2017-09-11 16:20:23 +01:00
Steve Sanderson 28ed6ea7d8 Simplify template dependency configuration 2017-09-11 16:19:22 +01:00
Steve Sanderson a6c2a458da Change 2.1 template dependencies to easily-updatable external value 2017-09-11 16:17:07 +01:00
Steve Sanderson 98d6e2a1b6 Add new Microsoft.DotNet.Web.ProjectTemplates.2.1 package, taking contents from dotnet/templating 2017-09-11 15:44:56 +01:00
Steve Sanderson 414cfde099 Update Microsoft.DotNet.Web.ProjectTemplates.2.0 contents from dotnet/templating 2017-09-11 15:42:06 +01:00
Steve Sanderson 692faf10ac Correct all the 2.0 projects to reference 2.0 dependencies, not 2.1.0-* 2017-09-11 15:40:03 +01:00
Steve Sanderson 7ab3ed2e74 Update Microsoft.DotNet.Web.ProjectTemplates.1.x content from dotnet/templating 2017-09-11 15:27:01 +01:00
Steve Sanderson 39b3be4515 Add Microsoft.DotNet.Web.Client.ItemTemplates package copied from dotnet/templating repo 2017-09-11 15:24:10 +01:00
Steve Sanderson c972aed96b Add a convenient way to manually override all templates' package dependency versions, e.g., when branching for a release 2017-09-11 13:33:02 +01:00
Steve Sanderson cd93041f76 Simplify substitution logic by removing need for string parsing 2017-09-11 12:56:02 +01:00
Stephen Halter 1e465e9643 Improve timeout logic 2017-09-08 12:50:01 -07:00
Steve Sanderson 72a01fb8f1 Run NuGet Package Verifier on build 2017-09-08 15:43:13 +01:00
Steve Sanderson 2fa1fe8ce2 Fix build output so that versioned packages go into the correct directory when run through KoreBuild 2017-09-08 15:24:15 +01:00
Vladimir Sadov f0ade24cf7 Updating to new toolset compiler. (#2043)
* Updating to new toolset compiler.
Now includes ref escaping rules.

* newer version.
2017-09-06 15:52:47 -07:00
Jass Bagga 0f51c56c3f Combine ExpandoObjectAdapter and DictionaryAdapter (#106)
Use JsonDictionaryContract in the DictionaryAdapter and combine with ExpandoObjectAdapter
2017-09-05 16:07:25 -07:00
John Luo 8b30efbe75 Use chained configuration 2017-09-05 12:54:00 -07:00
Steve Sanderson 57aae1f755 Fix failing test for Aurelia template 2017-09-05 16:42:22 +01:00
Steve Sanderson eece782496 Make template nuspecs consistent. Include SPA template packages projects in solution. 2017-09-05 11:37:39 +01:00
Steve Sanderson 039de8cd13 Copy SPA template packages from aspnet/javascriptservices repo 2017-09-05 11:02:39 +01:00
Pavel Krymets 3c58fde9a4 Fix tests (#101) 2017-09-01 14:58:24 -07:00
Pavel Krymets fbacee2621 Report package versions to TeamCity 2017-09-01 08:26:35 -07:00
Pavel Krymets 305ab1fa4c 1.0, 1.1 template tests (#100) 2017-08-31 15:49:14 -07:00
Jass Bagga ebd0baa458 Add dispatcher packages 2017-08-31 11:54:27 -07:00
Nate McMaster 370bc7d7c5 Use PackageLineup to manage PackageReference versions 2017-08-30 17:22:09 -07:00
Nate McMaster a0269fb0ad Use PackageLineup to manage PackageReference versions 2017-08-30 17:11:46 -07:00
Nate McMaster 64ed1c7945 Use Directory.Build.props/targets (#1235) 2017-08-30 14:48:58 -07:00
Steve Sanderson 9f4d43c295 Make build output clearer (log info, don't pack irrelevant project) 2017-08-30 22:46:25 +01:00
Luke Latham 6b8449f491 Sortable log files with stdoutLogFile (#131)
Fixes #130
2017-08-30 14:33:30 -07:00
Steve Sanderson 378c93e7d6 Also inject EntityFramework package versions dynamically 2017-08-30 22:27:47 +01:00
Justin Kotalik 1e8a22dae3 NameValueHeaderValue Escaping/Unescaping quoted-strings and helpers (#913) 2017-08-30 14:03:12 -07:00
Nate McMaster 5589365cac Use Directory.Build.props/targets (#227) 2017-08-30 12:58:16 -07:00
Stephen Halter 284367db9f Improve ConnectionLimitMiddleware and connection pipeline building (#2010)
* Improve ConnectionLimitMiddleware and connection pipeline building
* Add IDecrementConcurrentConnectionCountFeature
* Flow connection features from connection middleware
2017-08-30 11:30:20 -07:00
Steve Sanderson d6fdeb7e19 Automatically inject ASP.NET version from KoreBuild lineup into template nupkg files 2017-08-30 19:10:07 +01:00
Kiran Challa 12e9430d89 Sets the default cookie secure policy to None 2017-08-30 10:25:14 -07:00
Steve Sanderson 1255418146 Modernize build system (use Directory.Build.* and KoreBuild lineups) 2017-08-30 14:46:37 +01:00
Nate McMaster e5825641ce Use PackageLineup to manage PackageReference versions 2017-08-29 12:43:13 -07:00
Nate McMaster 9c699f74b0 Use Directory.Build.props/targets 2017-08-29 12:41:50 -07:00
Nate McMaster 9c78b5a8be Use PackageLineup to manage PackageReference versions 2017-08-29 12:39:24 -07:00
Nate McMaster 4595e91a7d Use Directory.Build.props/targets 2017-08-29 12:37:28 -07:00
Ben Adams e7743cbb78 Shorter LibuvThread locks (#2034) 2017-08-29 12:21:45 -07:00
Nate McMaster e87f13d267 Use PackageLineup to manage PackageReference versions 2017-08-29 12:14:28 -07:00
Nate McMaster 7e22244eed Use Directory.Build.props/targets 2017-08-29 12:13:48 -07:00
Nate McMaster 82ba6b51ef Use PackageLineup to manage PackageReference versions 2017-08-29 12:08:10 -07:00
Nate McMaster 59290efa6a Use Directory.Build.props/targets 2017-08-29 12:06:04 -07:00
Nate McMaster 1297798546 Use PackageLineup to manage PackageReference versions 2017-08-29 11:38:56 -07:00
Nate McMaster 5cf936d3cd Use Directory.Build.props/targets 2017-08-29 11:36:17 -07:00
Nate McMaster e67d85d30c Use PackageLineup to manage PackageReference versions 2017-08-29 11:31:54 -07:00
Nate McMaster 44f9a7083b Use Directory.Build.props/targets 2017-08-29 11:30:03 -07:00
Justin Kotalik e97e6546c2 Add structured syntax suffixes and facets to MediaTypeHeaderValue (#921) 2017-08-29 10:20:56 -07:00
Nate McMaster 5ca9f8928f Use PackageLineup to manage PackageReference versions 2017-08-29 09:55:55 -07:00
Nate McMaster 9a4a43cc6a Use Directory.Build.props/targets 2017-08-29 09:52:04 -07:00
Steve Sanderson bb5420dc5e Add .sln file and Template.csproj that builds all the template packages 2017-08-29 17:48:49 +01:00
Steve Sanderson 482a4e646e Rename 'template_feed' to 'src' for consistency with other repos 2017-08-29 17:48:44 +01:00
Nate McMaster 11377e08f6 Use PackageLineup to manage PackageReference versions 2017-08-29 09:42:24 -07:00
Nate McMaster 479eb49ca9 Use PackageLineup to manage PackageReference versions 2017-08-29 09:41:54 -07:00
Nate McMaster 5178176219 Use Directory.Build.props/targets 2017-08-29 09:41:12 -07:00
Nate McMaster 9634f7fd9c Use Directory.Build.props/targets 2017-08-29 09:30:22 -07:00
Nate McMaster 1e0fe87c20 Use PackageLineup to manage PackageReference versions 2017-08-29 09:21:41 -07:00
Nate McMaster a4432e694c Use Directory.Build.props/targets 2017-08-29 09:20:34 -07:00
Nate McMaster 9b45e7f118 Use PackageLineup to manage PackageReference versions 2017-08-29 09:16:24 -07:00
Nate McMaster 28acde451e Use Directory.Build.props/targets 2017-08-29 09:14:03 -07:00
Pavel Krymets b53a6f9a25 Install site extension on top of existing dotnet (#97) 2017-08-29 08:40:12 -07:00
Nate McMaster f63354713f Use PackageLineup to manage PackageReference versions 2017-08-28 15:38:43 -07:00
Nate McMaster 8530f91507 Use Directory.Build.props/targets 2017-08-28 15:36:59 -07:00
Nate McMaster ac0ce9c8ee Use PackageLineup to manage PackageReference versions (#162) 2017-08-28 14:19:18 -07:00
Nate McMaster 9e72cb0783 Use PackageLineup to manage PackageReference versions 2017-08-28 11:33:57 -07:00
Nate McMaster a93cf9ff5b Use Directory.Build.props/targets (#95) 2017-08-28 11:20:30 -07:00
Nate McMaster ab2730ea4f Use Directory.Build.targets/props 2017-08-28 10:37:05 -07:00
Nate McMaster 97b9ff3b33 Use PackageLineup to manage PackageReference versions 2017-08-28 09:46:47 -07:00
David Fowler 9d8556e7c4 Added FrameConnection.OnConnectionClosed back (#2028) 2017-08-26 21:20:06 -07:00
David Fowler 7854c0604a Remove the events on ConnectionContext (#2023)
- Use the pipe events and removed the Tasks from ConnectionContext
- Remove OnConnectionClosed from FrameConnection. Since the `FrameConnetion` is a single middleware, not the entire pipeline, we shouldn't need to wait on the connection close there.
- It seems like the callbacks are rooted on the pipe even after they fire. This needs to be investigated in pipelines.
2017-08-26 20:19:55 -07:00
Ben Adams 09be7c416a Use preparsed version, rather than reparsing (#2021)
Current path is:

 Parser -> HttpVersion Enum -> Get Version String -> Set `HttpVersion` with string -> Convert back to Enum

Can just set the enum directly since its already parsed.

Also using the const rather than strings; where the strings are in code
2017-08-26 17:18:16 -07:00
Ben Adams 088f7e32ae Reset StatusCode & ReasonPhrase directly (#2025) 2017-08-26 17:14:45 -07:00
John Luo 5a3ce9fd5d Update doc comments 2017-08-25 12:13:57 -07:00
Pavel Krymets c7fabda615 Use installdotnet target and clear all nuget packages to force offline (#92) 2017-08-25 11:13:06 -07:00
Nate McMaster 29fd1b3b33 Update README to show 2.0.0 as the latest packages
[ci skip]
2017-08-25 09:13:43 -07:00
Steve Sanderson e2030fb1fa Handle publicPath=/ in HMR. Fixes #1191. 2017-08-24 17:52:35 -07:00
Eric 9b1cbedffc WebSocketClient.ConnectAsync throws when the provided CancellationToken is cancelled. 2017-08-24 15:14:59 -07:00
Jass Bagga 3d6a8615de Support DynamicObject types (#99)
Addresses #38
2017-08-24 15:11:01 -07:00
Kiran Challa ce68ec23c0 Using WebEncoders' Base64Url encode/decode functionality 2017-08-24 14:00:49 -07:00
John Luo b187c1adc4 Add fallback when resolving application name
- Use the name of the EntryAssembly when application name is not specified
2017-08-24 11:00:01 -07:00
Pavel Krymets 9778c29007 Allow building an pushing site extension for azure functional testing (#87) 2017-08-23 14:55:27 -07:00
Javier Calvarro Nelson 964b671288 [Fixes #1012] Make it possible to override services when using UseStartup.
* Add IStartupConfigureServicesFilter to wrap ConfigureServices.
* Add IStartupConfigureContainerFilter<TContainerBuilder> to wrap
  ConfigureContainer.
* Make StartupLoader build a thunk for configure services that
  resolves all instances of IStartupConfigureServicesFilter and
  IStartupConfigureContainerFilter<TContainerBuilder> and wraps
  invocations to ConfigureServices and ConfigureContainer respectively.
* Refactor building the ConfigureServices callback into a private
  builder class due to the increased complexity in the process.
2017-08-23 14:32:51 -07:00
Cesar Blum Silveira d72175a846 Make StopAsync multi-thread safe (#377). 2017-08-23 12:08:43 -07:00
Jass Bagga d4b64af0e6 Use DictionaryKeyResolver for ExpandoObjectAdapter (#100)
Addresses #102
2017-08-23 10:30:11 -07:00
Justin Kotalik 6657f4cf36 Adds MaxAge property to CookieOptions/Builder (#904) 2017-08-22 16:57:04 -07:00
Justin Kotalik 1ea0647ae2 Update comments to reflect code behavior (#1182) 2017-08-22 16:46:00 -07:00
David Fowler dc9ed60465 Create the connection logging scope in ConnectionHandler (#2013)
- Instead of doing it on the FrameConnection only. This will
make sure all middleware logs get the connection id as part of their scope.
2017-08-22 14:32:58 -07:00
Nate McMaster 51aecc2c18 Use Directory.Build.props/targets 2017-08-22 12:32:16 -07:00
Steve Sanderson d6ae8829b6 In HMR, don't rely on default JsonSerializer settings. Fixes #688 2017-08-21 17:11:47 -07:00
Ben Adams 11a9b6498d Don't alloc IEnumerable in Reset for ITlsConnectionFeature (#2009)
* Don't alloc IEnumerable for ITlsConnectionFeature
* Delegate to ConnectionFeatures and determine scheme once
2017-08-21 17:01:05 -07:00
Steve Sanderson a40adab38d In non-ASP.NET apps, default project path to current working directory. Fixes #1100. 2017-08-21 16:40:59 -07:00
Steve Lathrop a7e715c88f Small grammatical fix to README.md 2017-08-21 15:37:58 -07:00
David Fowler 2e6687031d Added initial connection middleware pipeline (#2003)
* Added initial connection middleware pipeline
- Implemented IConnectionBuilder on ListenOptions. Kept IConnectionAdapter for now.
- Delay the configure callback for ListenOptions until the server has started.
- Added ConnectionLimitMiddleware and HttpConnectionMiddleware
- Expose ConnectionAborted and ConnectionClosed on ConnectionContext and
IConnectionTransportFeature
- Updated the tests
- Removed IConnectionApplicationFeature
- Moved Application to IConnectionTransportFeature
2017-08-21 12:11:27 -07:00
Justin Kotalik 27b0f60f09 ForbidAsync now uses correct Schemes method (#918)
* ForbidAsync now uses correct Schemes method

* comment

* adds tests
2017-08-19 22:09:22 -07:00
Nate McMaster a993c2a5ff Use PackageLineup to manage versions (revert revert)
We resolved the issues with PackageLineup and partial graph builds.
This reverts commit 01bf47170f.
2017-08-18 16:31:06 -07:00
Nate McMaster 01bf47170f Revert lineups change until we work out issues with PackageLineup
This reverts commit a2c0410e39.
2017-08-18 10:43:19 -07:00
Nate McMaster a4320ccbda Upgrade to xunit 2.3.0-beta4 2017-08-18 09:55:10 -07:00
Justin Kotalik 312e0da556 Fix case sensitivity on Startup classes and methods (#1166) 2017-08-18 09:45:12 -07:00
Justin Kotalik c74d0e7458 Adds .Value to logger calls to avoid calling .ToUriComponents on a bad header. (#1169)
* Add .Value to request properties in HostingRequestStartLog
2017-08-18 09:43:04 -07:00
Stephen Halter 14f122fb9f Measure Writing in FrameWritingBenchmark 2017-08-17 16:59:24 -07:00
Nate McMaster a2c0410e39 Use PackageLineup to manage package versions 2017-08-17 16:16:40 -07:00
Ben Adams 442ee80039 Less awaits for Reponse Write(Async) 2017-08-17 15:51:22 -07:00
Nate McMaster 87db7cceb6 Stop producing Microsoft.AspNetCore.Server.Kestrel.Tls as a package 2017-08-16 14:56:01 -07:00
Nate McMaster 26f1d4baa3 Use PackageLineup
PackageLineup is a way to manage PackageReference versions across large projects. It removes the version information from the repository and instead pulls the information from an external "lineup" file.
2017-08-16 14:10:43 -07:00
Cesar Blum Silveira 0fafd19ec9 Initial HTTP/2 support.
What works:

- HTTP/2 over TLS1.2 with ALPN
- Request and response flow
  - Headers are compressed and decompressed with HPACK
  - Request body can be read by streams (if present)
  - MVC template app with individual auth works fine
- PRIORITY frames are validated
- RST_STREAM frames are validated and abort streams
- SETTINGS frames are validated and ACKed
- PING frames are validated and ACKed
- GOAWAY frames stop connections
- WINDOW_UPDATE frames are validated
- CONTINUATION frames are sent for large header blocks

What doesn't work yet:

- Flow control in either direction
- It's not possible to encode a single header across more than one frame
  - Affects only a very large header (name and value combined ~16KB long)
- Request trailers
- Response trailers
- Limits and timeouts in `KestrelServerLimits` are not enforced on HTTP/2
- HPACK use is very limited on the send side
  - Literals are not Huffman-encoded
  - Common headers (e.g. "server: Kestrel") are never indexed
- Honoring client settings
- Some error checking is still missing (e.g. validating incoming frame size)
2017-08-16 10:04:44 -07:00
David Fowler 5c775073a4 Initial bedrock refactoring (#1995)
- Added Protocols.Abstractions
 - IConnectionHandler.OnConnection takes an IFeatureCollection instead of
 IConnectionInfo
 - Removed IConnectionContext and IConnectionInformation replaced with
 IConnectionTransportFeature
 - Updated FrameConnectionContext and FrameContext to have the relevant
 state instead of flowing the ConnectionInformation.
 - Updated tests
2017-08-16 00:02:48 -07:00
Justin Kotalik 594f55947f Keep ResponseCookie options on delete. (#905) 2017-08-10 18:01:30 -07:00
Henk Mollema 456957bf57 Use dictionary for deployment parameters (#1126) 2017-08-10 10:56:21 -07:00
Pavel Krymets 396f413b38 Rename testing metapackage (#218) 2017-08-10 09:38:19 -07:00
Pavel Krymets 653272600f Add site extension generation code (#217) 2017-08-10 08:11:57 -07:00
Christian Weiss 07f96a444e Always log startup exceptions 2017-08-08 09:55:30 -07:00
John Luo a49db63f06 Increment M.H.Server.IntegrationTesting version 2017-08-07 15:28:45 -07:00
Pavel Krymets 659fa967a1 Consume corefxlab packages and private build of C# compiler (#1976) 2017-08-07 13:58:19 -07:00
pan-wang 93b37e14db fix websocket connection issue and some memory leak, and add debug print (#129) 2017-08-04 14:51:15 -07:00
John Luo cbad7fad7a Add API baseline for Microsoft.AspNetCore 2017-08-03 17:39:26 -07:00
Steve Sanderson 5f1450c9ba Make aspnet-angular compatible with AoT compilation 2017-08-02 10:53:46 +01:00
Steve Sanderson c83605baff Add aspnet-angular NPM package containing HttpWithStateTransfer utility 2017-08-02 10:26:46 +01:00
Stephen Lautier fc12d722b8 fix(webpack): fix middleware to specifically serialize options as non-camecased 2017-08-02 09:24:42 +01:00
Eric Green 372e597f34 Added Timeout to HttpClient to always be longer than the InvocationTimeoutMilliseconds.
HttpClient defaults to 100 seconds. If InvocationTimeoutMilliseconds is greater than the default of the HttpClient, the task will fail with a Task was canceled exception.
2017-08-02 09:22:34 +01:00
Nate McMaster 6584a8b5fd Shorten folder names
Remove the Microsoft.AspNetCore.Server prefix from csproj and their folders. This is required to help us avoid max path issues on Windows.
2017-07-28 11:11:55 -07:00
Justin Kotalik 057fc816fa Refactor to HttpRequest/Response Streams 2017-07-27 15:46:13 -07:00
Justin Kotalik a8270a4901 Removes quotes from names in ContentDispositionHeaderValue 2017-07-27 12:30:04 -07:00
Nate McMaster d058fe5a39 Fix StackOverflowException caused when creating the watcher on directories from a network share 2017-07-26 17:23:06 -07:00
Ryan Brandenburg 23948c5544 Update VersionPrefix 2017-07-26 16:37:40 -07:00
Pavel Krymets fd6617d101 React to pipeline changes (#1969) 2017-07-26 15:51:06 -07:00
Ryan Brandenburg 5b85b3f6c7 Update VersionPrefix 2017-07-26 15:35:24 -07:00
John Luo 819ee5faaf Add M.Dotnet.Watcher.Tools and M.E.Caching.SqlConfig.Tools to lzma 2017-07-19 12:15:17 -07:00
Mike Harder 266736764c Rename to DiagnosticSourceVersion (#1143)
- Matches other repos
2017-07-19 09:37:37 -07:00
Justin Kotalik b41d8656d5 Adds new date string in HttpRuleParser 2017-07-18 13:34:32 -07:00
Justin Kotalik 68ba94218a IsNullOrWhiteSpace => IsNullOrEmpty 2017-07-18 09:08:49 -07:00
Stephen Halter 09c92d61d0 Merge branch 'rel/2.0.0' into dev 2017-07-17 14:58:16 -07:00
Stephen Halter f0e572075b Fix FlushAsync when a ConnectionAdapter is configured (#1957)
* Also remove async void everywhere
2017-07-17 14:57:26 -07:00
Justin Kotalik ab0185a0b8 Adds null checks to UriHelper and fixes typo 2017-07-17 12:23:01 -07:00
Nate McMaster 76aa9b26fc Use async main in dotnet-watch 2017-07-13 11:55:07 -07:00
Chris R 5753784ac4 #391 Add back the DisplayName setting 2017-07-13 11:22:38 -07:00
Justin Kotalik 3202387d3f Fixes typo 2017-07-13 10:37:33 -07:00
= bf0e2bca5e Update ApplicationInsights version 2017-07-12 15:43:39 -07:00
Steve Sanderson cdb04c74f9 Update aspnet-webpack to 2.0.1, automatically disabling the middleware if we detect the process doesn't have sufficient disk permissions 2017-07-12 23:06:05 +01:00
Pavel Krymets 5ea7030b69 Reload AI configuration file on change (#76) 2017-07-12 13:03:19 -07:00
David Fowler 7ebbdad974 Add support for connection scopes if logging is enabled (#1953)
* Add support for connection scopes if logging is enabled
- Don't create a scope if logging isn't on
- Copied the pattern we use in Hosting
2017-07-12 11:45:08 -07:00
Steve Sanderson a74941e3c8 Merge branch 'rel/2.0.0' into rel/2.0.0-templates 2017-07-12 15:30:14 +01:00
Steve Sanderson 576e3debf1 Complete the lstat patching for #1101 2017-07-12 15:27:00 +01:00
Mike Harder 5618fa52d8 Update MSBuild to 15.3.0-* (#320)
- Matches version shipping with Visual Studio 15.3
2017-07-11 17:47:28 -07:00
Steve Sanderson 4903e12373 Publish aspnet-webpack-react as 3.0.0 since it's no longer beta 2017-07-11 23:55:50 +01:00
Steve Sanderson 56c806b34e Update aspnet-prerendering to 3.0.1, fixing the default "fetch" base URL to match the real application root URL 2017-07-11 23:55:49 +01:00
Cesar Blum Silveira fd1758fdfc Make StopAsync multi-thread safe (#1666). 2017-07-11 14:29:50 -07:00
Andrew Stanton-Nurse 748b35109c de-exeify HostingStartup to fix downgrade errors 2017-07-11 11:57:18 -07:00
Steve Sanderson 8acba88160 Update aspnet-webpack to 2.0.0, now supporting HMR when apps are running in virtual directories 2017-07-11 18:57:52 +01:00
Steve Sanderson 44f86eb8a1 Fix webpack HMR proxying logic for apps running on non-root URLs (e.g., full IIS virtual directories) 2017-07-11 18:56:06 +01:00
David Fowler e4350945c5 Attach the correlation id to the request scope if logging is on (#1138)
- Add the correlation id to the request scope as well as setting
it as the parent id of the activity
2017-07-11 10:03:15 -07:00
Steve Sanderson 22ff88ab79 On Windows, patch Node's lstat to work around permissions error. Fixes #1101 2017-07-11 10:43:31 +01:00
John Luo f125329ed7 Use private instance of MemoryCache and impose size limit 2017-07-10 15:15:16 -07:00
pan-wang 002c8b9bc9 Adding shutdown http message to support the scenario that ctrl signal is not allowed (#118) 2017-07-10 14:55:15 -07:00
Chris R c8bbbe764a #395 Add baseline and breaking change files 2017-07-10 09:41:31 -07:00
Hao Kung 7403418d2b Clean up doc comments 2017-07-10 09:21:56 -07:00
Kévin Chalet 0f7c123081 Fix AuthenticationOptions.DefaultScheme's invalid XML summary 2017-07-10 09:19:48 -07:00
Cesar Blum Silveira eca4bfe6c3 Add response minimum data rate feature. 2017-07-07 22:37:25 -07:00
Nate McMaster 5185ebe45f Fix typo in type name (#1948) 2017-07-07 16:27:20 -07:00
Nate McMaster ec72c255f6 Make HttpsConnectionAdapter pubternal 2017-07-07 14:23:34 -07:00
Nate McMaster a3c157cb61 Validate certificate EKU when it is provided 2017-07-07 11:31:06 -07:00
Chris R 2e2dc67978 #390 Add back AutomaticAuthentication for opt-out. 2017-07-07 11:28:57 -07:00
Hao Kung d894584254 Add DefaultScheme, remove single fallback (#891) 2017-07-07 10:47:54 -07:00
Nate McMaster bd8a2c8a62 Add XML docs for the public HTTPs APIs shipping in 2.0 (#1942) 2017-07-07 10:40:39 -07:00
Ryan Brandenburg 7ca5002b4c Remove NETSTandard.Library.NETFramework 2017-07-07 10:27:25 -07:00
Steve Sanderson e632d2bb69 In domain-task/fetch, only apply HTTPS cert validation workaround for HTTPS requests (not HTTP) 2017-07-07 12:07:12 +01:00
Pavel Krymets b484d2ee4f Remove default AI logger settings (#69) 2017-07-06 12:24:38 -07:00
Steve Sanderson 27f59c6971 Make domain-task/fetch disable HTTPS cert validation when making relative requests to own server as workaround for #1089 2017-07-06 14:37:29 +01:00
Steve Sanderson 943fb2f482 In core packages, set <None Remove="node_modules\**\*" /> otherwise builds are super slow 2017-07-06 11:13:24 +01:00
Chris R 13b867a90e #366 Add flag to disable synchronous IO 2017-07-05 15:51:16 -07:00
Hao Kung a79aea3bf3 Tweak null guard 2017-07-05 14:39:27 -07:00
Hao Kung d632c6a1a1 Merge branch 'haok/null' into dev 2017-07-05 14:32:17 -07:00
Chris R 1a1e4c309f #167 Add cancellation tokens and defualt timeouts for Load/CommitAsync. 2017-07-05 14:22:43 -07:00
Hao Kung 98eb31194c Guard against null 2017-07-05 13:33:39 -07:00
Nate McMaster 6f4f34a0bf Remove SessionOptions.SameSideMode (#176) 2017-07-05 09:40:55 -07:00
Chris R 85402d4bd6 Add CancellationToken to ISession Load/CommitAsync 2017-07-05 09:05:01 -07:00
Ryan Brandenburg 81544958b8 DiagnosticSource to 4.4.1 2017-07-03 15:02:01 -07:00
Aristarkh Zagorodnikov 00d17dea79 Domain socket handles (#1922)
* UvPipeHandle.Open(IntPtr) and underlying interop
* LibuvConstants.ENOTSUP
* IEndpointInformation.HandleType along with ListenOptions extra ctor and handle type re-specification
* Exception-based auto-detection of socket type in Listener, accept socket creation support for detected handle types in ListenerContext
* Added systemd Unix socket activation tests
2017-07-03 11:11:23 -07:00
Stephen Halter e9ffcdb414 Add feature to optionally disallow synchronous IO (#1919)
* Allow synchronous IO by default
2017-07-03 11:07:17 -07:00
Steve Sanderson 94fc84a9b4 Add simpler prerendering API. Fixes #607 2017-07-03 14:07:28 +01:00
Steve Sanderson 9cce26ebd8 Fix error formatting by rebuilding entrypoint-http.js 2017-07-03 14:01:31 +01:00
Steve Sanderson 513d288a5d Use GetRandomFileName instead of GetTempFileName. Fixes #1060 2017-07-03 10:15:53 +01:00
Steve Sanderson 429a432dd3 Check for null during node process disposal. Fixes #1061 2017-07-03 10:09:03 +01:00
John Luo 15008b0b7f Add WaitForShutdown to WebHostExtensions 2017-07-01 23:13:52 -07:00
David Fowler b0a70aeef7 Add synchronous Start back to IWebHost (#1125)
* Add synchronous Start back to IWebHost
- Fixed extension methods to have a default(CancellationToken)
- Removed extension methods for Start, StartAsync and StopAsync
2017-07-01 15:00:54 -07:00
Nate McMaster df41fd8ccc Replace the ConfigureCookieOptions action property with the CookieBuilder 2017-06-30 15:18:40 -07:00
Cesar Blum Silveira 81c2b57dda Increase default request min rate to 240 bytes/second (#1929). 2017-06-30 14:58:44 -07:00
Ryan Brandenburg 5f37723e8d Remove AssetTargetFallback 2017-06-30 14:42:27 -07:00
Ryan Brandenburg 8e7dafad96 Remove AssetTargetFallback 2017-06-30 13:11:13 -07:00
Cesar Blum Silveira 68ba9a9445 Avoid torn reads from _frame.MinReadBodyDataRate in FrameConnection.Tick(). 2017-06-30 12:22:31 -07:00
Nate McMaster 6d858dfeb2 Make CookieBuilder.Build(HttpContext) non-virtual 2017-06-30 12:13:31 -07:00
Nate McMaster dece939aab Add CookieBuilder property to SessionOptions and obsolete duplicated properties 2017-06-30 10:02:53 -07:00
Nate McMaster 199b0fa212 Require CookieBuilder.Name to be a not null or empty 2017-06-30 09:20:13 -07:00
Cesar Blum Silveira f2061ed716 Rename request body min rate APIs (#1901). 2017-06-29 17:16:34 -07:00
John Luo 64ed5bb4ff Use new SelfContained property 2017-06-29 16:50:34 -07:00
Hao Kung 824051cb28 React to auth 2017-06-29 16:29:00 -07:00
Hao Kung 779cfd265a React to HttpAbstractions 2017-06-29 16:27:46 -07:00
Hao Kung 271faf11bb Refactor IAuthenticationHandler/Result 2017-06-29 16:25:24 -07:00
Nate McMaster f9e0439ef1 Add CookieBuilder 2017-06-29 15:55:01 -07:00
David Fowler 9bf94d3667 Remove unused parameter in ctor of HttpContextFactory (#881)
- We removed the use of the ObjectPoolProvider in 1.x, this change
just removes it from the ctor.
2017-06-29 11:44:46 -07:00
Pavel Krymets 417e6b81ea Cross-compile hosting startups (#68) 2017-06-29 11:15:57 -07:00
Jass Bagga 61505b88a5 Remove use of GetTempFileName (#313) 2017-06-28 12:11:17 -07:00
Nate McMaster f3ed8129f3 Ensure Microsoft.AspNetCore.All is only compatible with netcoreapp2.0 (#180) 2017-06-28 10:21:55 -07:00
Chris Ross 163836fe1f #800 Re-enable API check (#878) 2017-06-28 10:16:54 -07:00
Nate McMaster 64c6e11ce4 Change HttpResponseStreamWriter.DefaultBufferSize to 16K and remove it from public API surface 2017-06-27 17:31:54 -07:00
Nate McMaster 9b4be69e9d Do not enforce timeouts when the debugger is attached 2017-06-27 16:56:27 -07:00