Commit Graph

600 Commits

Author SHA1 Message Date
Pranav K d2f109ef6c Add environment variables to dotnet publish 2016-08-18 10:34:13 -07:00
David Fowler 0a7cf6b5a0 Added support for Startup.ConfigureContainer
- Startup.ConfigureContainer allows users to configure a 3rd party DI
container in a first class way in the Startup class. 3rd party containers
plug in via IServiceProviderFactory<TContainerBuilder> configured in
IWebHostBuilder.ConfigureServices.
- Added tests
2016-08-17 10:44:27 -07:00
Pranav K f8189a2296 Rename to Microsoft.AspNetCore.Server.IntegrationTesting
Fixes #824
2016-08-12 12:03:01 -07:00
Kiran Challa c6de61b520 Addressed feedback 2016-08-10 11:50:04 -07:00
Kiran Challa cc65ddfa28 Updated ApplicationDeployer to conditionally delete published application folder 2016-08-10 10:04:17 -07:00
Kiran Challa 1aa5ebc585 ApplicationDeployer: Supply the build configuration to dotnet publish 2016-08-08 13:27:23 -07:00
Kiran Challa e96f2cb738 Set deployed application root folder as working directory 2016-08-04 14:07:36 -07:00
Ajay Bhargav Baaskaran 184a25792a [Fixes #819] Display LoaderExceptions in ReflectionTypeLoadException 2016-07-25 12:19:32 -07:00
John Luo b955ec7743 Update shutdown logic for hosted applications
- Guarantee the ordering of ApplicationLifetime events
- Guarantee that the callbacks of each event is completed before the next event is triggered
2016-07-21 11:14:51 -07:00
Steve Smith 44fc5a7bf9 Fixed typo
speficied => specified
2016-07-20 17:18:07 -04:00
Doug Bunting 9a03b504ef One build to rule them all
- well, at least VS and command-line builds will share output
- part of aspnet/Coherence-Signed#277
2016-07-07 11:59:39 -07:00
Pranav K dc35157f7a Use MethodDisplayInfo to display stack trace 2016-07-05 11:47:09 -07:00
Mohammad Rahhal 7b513de5c3 Output "Application is shutting down" message 2016-06-17 10:53:30 -07:00
Pranav K ef0de2b6e7 Updating to dev versions 2016-06-16 10:17:56 -07:00
BrennanConroy 7d2ec5b37b Fix tests hanging 2016-06-14 16:43:56 -07:00
Kiran Challa c72f8ac8bb Updated the dotnet CLI workaround for enabling standalone or portable apps to run in Nano 2016-06-13 12:39:19 -07:00
Cesar Blum Silveira 0f79bff98b Prevent NullReferenceException when disposing Context.Scope (#782). 2016-06-09 15:58:31 -07:00
jacalvar 525b9251df Remove unnecesary imports 2016-06-08 14:58:21 -07:00
John Luo db4b0af98b Read environment variables by default #784 2016-06-08 10:42:00 -07:00
BrennanConroy e41b455141 Update 2016-06-07 11:35:40 -07:00
BrennanConroy 7808a47ccc Use Sources RuntimeEnvironment 2016-06-07 10:01:27 -07:00
Kiran Challa 808ee7e965 Fixed SelfHostDeployer and IISExpressDeployer to use the correct application path 2016-06-06 16:32:51 -07:00
Kiran Challa 772bd562c9 Fixed RemoteWindowsDeployer to support IIS scenarios 2016-06-06 16:32:51 -07:00
Pranav K cb27e74fc9 Target netstandard1.3 2016-06-06 12:57:14 -07:00
Pranav K d02f67785f Use Microsoft.Extensions.StackTrace.Sources 2016-06-03 16:44:57 -07:00
Pranav K a3b2a7b62b Fix package verifier warnings 2016-06-02 10:55:03 -07:00
Cesar Blum Silveira a2ee01272a React to HttpAbstractions@8212694. 2016-05-31 17:05:39 -07:00
Kiran Challa 1433822ec8 Fix OS platform check in SelfHostDeployer 2016-05-31 15:54:17 -07:00
Kiran Challa bb3555c3dc Fixed RemoteWindowsDeployer to copy dontet runtime to target server for enabling portable apps scenario 2016-05-31 11:50:28 -07:00
BrennanConroy f60aa7aa70 Replace some of PlatformAbstractions with RuntimeInformation 2016-05-31 10:38:03 -07:00
David Fowler 92553ae77c Removed dead code 2016-05-28 16:34:38 -07:00
John Luo 4fccbeebdc Update metadata 2016-05-27 15:26:29 -07:00
John Luo 8a9963ece2 React to updated CoreCLR packages
https://github.com/aspnet/Coherence/issues/97
2016-05-26 18:33:37 -07:00
Kiran Challa be7069b198 Fixed RemoteWindowsDeployer for testing portable apps and temporary workaround for a dotnet cli issue 2016-05-26 12:37:21 -07:00
John Luo 7f4e3645f2 Update ConfigureServicesBuilder exception message #502 2016-05-23 16:11:18 -07:00
David Fowler e7b8c3f90a Support ASPNETCORE_URLS to set server urls
- Read both urls and server.urls in WebHost
- UseUrls now sets urls instead of server.urls
2016-05-22 01:37:28 -07:00
David Fowler 14557f0131 Removed UseServer 2016-05-20 22:07:43 -07:00
David Fowler 057bcb43ac Move extension methods to Hosting.Abstractions
- - Moved everything that could be moved to Hosting.Abstractions
2016-05-20 22:07:43 -07:00
David Fowler c5e8120e39 Remove UseServer(string) overload
- Removed the overload that takes a string because it's broken

#731
2016-05-20 21:55:26 -07:00
Pavel Krymets bdc3959938 Downgrade Server.Testing version to 0.1 2016-05-20 14:35:06 -07:00
Pranav K 2bd97b6071 Fix build warnings 2016-05-19 14:20:17 -07:00
Pranav K d42df96a47 Revert "aspnet/Coherence#97 - React to updated CoreCLR packages"
This reverts commit 5326405fd7.
2016-05-18 10:24:02 -07:00
Pranav K ad7de3619a Revert "React to updated CoreCLR packages"
This reverts commit 657d35819d.
2016-05-18 09:43:34 -07:00
John Luo 657d35819d React to updated CoreCLR packages
https://github.com/aspnet/Coherence/issues/97
2016-05-17 15:13:47 -07:00
Ajay Bhargav Baaskaran 5326405fd7 aspnet/Coherence#97 - React to updated CoreCLR packages 2016-05-17 12:53:24 -07:00
Kiran Challa 954e864f96 Fixed RemoteWindowsDeployer to differentiate running between portable/standalone apps. 2016-05-13 10:17:55 -07:00
John Luo 06e23558d2 Merge branch 'release' into dev 2016-05-06 17:25:13 -07:00
John Luo 3337c288c7 Update self host deployer to target specific framework when lauching without publish 2016-05-05 18:58:37 -07:00
Chris R 4cad0a2f01 Merge branch 'release' into dev 2016-05-03 09:05:55 -07:00
Chris R 642cdc0437 #738 Support legacy environment keys 2016-05-03 09:02:44 -07:00
Chris R e6bddd4131 Prepopulate the environment rather than fall back to it. 2016-05-03 08:55:56 -07:00
Pranav K 7b5d7f7883 Merge branch 'release' into dev 2016-05-02 14:56:12 -07:00
Pranav K 7fdc9271f4 Fix build warnings 2016-05-02 12:39:09 -07:00
Pranav K 853820cd9d Clean up sample 2016-04-29 08:54:04 -07:00
BrennanConroy d5b1df13cf Merge branch 'release' into dev 2016-04-28 10:06:13 -07:00
BrennanConroy 289b3f58d0 Prefer uppercase ASPNETCORE_ENVIRONMENT 2016-04-28 10:01:43 -07:00
John Luo 9479f0910a Merge branch 'release' into dev 2016-04-27 14:04:41 -07:00
John Luo e505ecbc21 #700 #727 Add environment variables by default and remove UseDefaultHostingConfiguration 2016-04-27 11:40:22 -07:00
John Luo 98bf64819e Merge branch 'release' into dev 2016-04-27 11:13:58 -07:00
John Luo c3d8a00c11 Remove DNX branding from footer 2016-04-27 10:42:11 -07:00
jacalvar 126a73a475 Merge branch 'release' into dev 2016-04-27 09:34:46 -07:00
jacalvar e36c80bc7b [Fixes #721] Test server should fire onResponseCompleted after the actual response has completed 2016-04-27 09:31:02 -07:00
Pranav K abe6dd5692 Merge branch 'release' into dev 2016-04-26 10:18:15 -07:00
Pranav K 3853d988c2 Remove references to IRuntimeEnvironment \ IApplicationEnvironment 2016-04-25 14:25:19 -07:00
Kiran Challa 80714a3d70 Added RemoteWindowsDeployer to deploy published applications on remote windows machines 2016-04-21 15:30:29 -07:00
John Luo 744e736c70 Merge branch 'release' into dev 2016-04-21 10:38:19 -07:00
John Luo e874f99791 Updating deployers for apps using shared runtime 2016-04-21 10:27:03 -07:00
David Fowler 68092dbb97 Porting #712 to release 2016-04-19 10:29:25 -07:00
Dorin Andreica d2780734b2 Rebased #713 on latest aspnet/Hosting 2016-04-19 11:38:32 +02:00
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 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
John Luo 816b5df9cd React to moving web.config 2016-04-08 16:35:14 -07:00
Pranav K a1267311fe Removing imports from src projects 2016-04-08 06:48:53 -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
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 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
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
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