Commit Graph

641 Commits

Author SHA1 Message Date
David Fowler 933a2f5a1d Don't dispose the server anymore, the container does it 2016-04-18 22:47:28 -07:00
David Fowler 8f5f8d28d0 This change introduces a new service `IStartup` that can be registered in the hosting container to override any startup logic. `UseStartup` overloads have been changed to detect `IStartup` and directly put it in the container, or to wrapping it with a `ConventionBasedStartup` implementation to preserve the existing behavior.
- Remove IStartupLoader and add `IStartup` instead that matches the signature hosting cares about
- Moved `UseStartup` to extension methods
- Move existing logic into `ConventionBasedStartup` class
2016-04-18 21:33:03 -07:00
Pavel Krymets dd6bf6a205 Merge branch 'release' into dev 2016-04-18 16:58:32 -07:00
Pavel Krymets e3f4f23b5a Bring Microsoft.NETCore.Platforms dependency back 2016-04-18 16:58:28 -07:00
Ryan Brandenburg 4e5fd908fd Merge remote-tracking branch 'origin/release' into dev 2016-04-18 09:49:59 -07:00
Ryan Brandenburg 6fd469e748 Make contentRootPath error give failed path 2016-04-18 09:48:48 -07:00
Chris R 5e425b24ec Merge branch 'release' into dev 2016-04-15 16:02:49 -07:00
Chris R 26e6036187 #698 Remove IServerFactory 2016-04-15 16:01:17 -07:00
Ryan Brandenburg 6a57ec1fa9 Make contentRootPath error give failed path 2016-04-15 14:47:22 -07:00
Dorin Andreica eb8c0a2634 Do not suppress original exceptions in ConfigureBuilder, Fix #695 2016-04-15 11:06:20 -07:00
BrennanConroy 90510f5138 Allow nginx to run with published apps 2016-04-15 10:05:13 -07:00
Pavel Krymets d3bc744b3a Merge branch 'release' into dev 2016-04-14 15:21:57 -07:00
Pavel Krymets 622d6b006f Migrate tests, tools and samples to portable 2016-04-14 15:18:02 -07:00
John Luo 12fff1833f Merge branch 'release' into dev 2016-04-11 09:47:28 -07:00
John Luo 816b5df9cd React to moving web.config 2016-04-08 16:35:14 -07:00
Pranav K ed3b3044d1 Merge branch 'release' into dev 2016-04-08 06:48:53 -07:00
Pranav K a1267311fe Removing imports from src projects 2016-04-08 06:48:53 -07:00
Pranav K 6ed1162333 Merge branch 'release' into dev 2016-04-06 09:46:49 -07:00
Pranav K 121a2b5cd0 Updating to release. 2016-04-06 09:46:47 -07:00
jacalvar 4cbda0358b Eagerly initialize hosting environment 2016-04-02 00:53:11 -07:00
David Fowler b6a3fee088 Allocate the IServiceScopeFactory once and reuse it across requests
- Since we resolve the IServiceProvider from the application container, it's should be safe to reuse it across requests without the extra lookup everytime.
2016-04-01 20:32:59 -07:00
BrennanConroy 8c69989a5f React to logging changes 2016-04-01 12:02:09 -07:00
BrennanConroy b5816f22cf Replace DNX451 with NET451 2016-03-31 10:58:45 -07:00
Doug Bunting 6e87b51638 React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:02:42 -07:00
Victor Hurdugaci 9ee7b408e6 Webhooks notification 2016-03-30 15:38:43 -07:00
David Fowler 1182a5a9ca Remove IServerLoader and add the IServerFactory to the DI container
- This change removes the indirection and between the IServerLoader and
the IServerFactory. We now add the IServerFactory directly to the DI
container and resolve it from there.
- Moved logic that resolves IServerFactory from an assembly to a static
helper
2016-03-30 13:39:27 -07:00
BrennanConroy 8451d1afcb Fix rare deadlock in TestHost 2016-03-30 10:24:50 -07:00
David Fowler a0de7564e2 Small tweaks to hosting
- Added some framework assemblies to stop VS from complaining
- Call AddSingleton instead of TryAddSigleton since we're always first.
- Remove the null check since these abstractions are never null now.
- Moved comments
2016-03-29 03:03:40 -07:00
John Luo fb036a4e3a Update samples TFM 2016-03-25 17:30:52 -07:00
John Luo a406bfd86f Add addtional test and some comments 2016-03-25 17:11:21 -07:00
Christian Weiss 4b16e83a1f Pass existing LoggerFactory into WebHostBuilder 2016-03-25 15:34:30 -07:00
BrennanConroy 22eab75005 Add Nginx Deployer 2016-03-25 14:52:10 -07:00
Doug Bunting b06a84457d Ensure an `ObjectPoolProvider` is registered
- e.g. take advantage of aspnet/HttpAbstractions#561 fix wherever cookies are used
2016-03-25 09:58:05 -07:00
David Fowler 6c1247b30c Fix build
- Hoist packages using netstandard.library
- Upgrade process since it's not in the standard library
2016-03-25 00:46:39 -07:00
Christian Weiss bfcaa00e1b removes the ConfigureDelegate delegate 2016-03-24 18:03:53 -07:00
John Luo 312192b447 WebHostBuilder extensions rename and documentation. #636 #648 2016-03-22 16:27:28 -07:00
= b7bdc9c404 Fix relative content root path test for non-windows systems 2016-03-21 11:27:53 -07:00
Doug Bunting bb3809d3dc React to HttpAbstractions change: No features in `.Internal` namespace
- see issue aspnet/HttpAbstractions#561 and pull aspnet/HttpAbstractions#589
2016-03-21 09:06:37 -07:00
Pranav K 3af7a96c78 Reacting to CoreCLR package changes 2016-03-20 20:17:52 -07:00
David Fowler 0852883133 Merge pull request #664 from cwe1ss/cweiss/InconsistentFilenames
File names not matching class names
2016-03-20 12:25:26 -07:00
David Fowler 7a50deb9af Merge pull request #662 from cwe1ss/cweiss/EnvironmentDocs
Replaces Hosting:Environment with new values in docs
2016-03-20 12:24:54 -07:00
David Fowler 2836c20093 Merge pull request #663 from cwe1ss/cweiss/AbstractionsDocs
Consistency fixes for XML docs
2016-03-20 12:24:15 -07:00
Christian Weiss cc0fc6ac06 File names not matching class names 2016-03-20 12:06:46 +01:00
Christian Weiss 312db4b424 Consistency fixes for XML docs 2016-03-20 11:38:46 +01:00
Christian Weiss 2e07ddee45 Replaces Hosting:Environment with new values in docs 2016-03-20 11:15:26 +01:00
John Luo 862f16efa9 Update package name 2016-03-17 16:35:20 -07:00
John Luo 9ae3327af3 Use KillTree from Common 2016-03-17 16:07:38 -07:00
John Luo ac7741fe81 Configure IStartupFilters in FIFO order #653 2016-03-17 15:51:32 -07:00
John Luo 32740d67a7 Use NullFileProvider from FileSystem 2016-03-16 14:27:45 -07:00
John Luo 24279aa946 Handle directories with spaces during deployment publish #630 2016-03-15 17:49:16 -07:00