Commit Graph

769 Commits

Author SHA1 Message Date
Justin Kotalik 52802d1afa
Make Deployers handle ANCM V1 and V2 (#1407) 2018-05-02 09:13:32 -07:00
Chris Ross (ASP.NET) bfc12fd6ac Merge branch 'release/2.1' into dev 2018-05-01 14:09:36 -07:00
Chris Ross (ASP.NET) 2c1376c95f Add a AddHostedService extension #1402 2018-05-01 14:07:24 -07:00
Chris Ross (ASP.NET) 1717b97444 Run self-host tests with no-build. #1399 2018-05-01 12:22:36 -07:00
Justin Kotalik c72df2865c
Check existence of ANCMV2 Path (#1397) 2018-05-01 10:05:07 -07:00
Chris Ross (ASP.NET) 9d82942a1a Run self-host tests with no-build. #1399 2018-04-25 14:10:00 -07:00
Nate McMaster 122b07bb1c
Attempt to fix tests when building in ProdCon 2018-04-21 08:14:28 -07:00
Nate McMaster 0f131ac245
Disambiguate /p from -p on dotnet-run 2018-04-21 08:13:29 -07:00
Nate McMaster ed7e6db79e
Attempt to fix more failing tests in prodcon builds 2018-04-21 08:01:30 -07:00
Chris Ross (ASP.NET) d69798d2c1 Clean up pipes usage in TestHost 2018-04-20 10:39:50 -07:00
Nate McMaster 78904e70c7
Merge branch 'release/2.1' into dev 2018-04-19 12:31:47 -07:00
Nate McMaster 30928ba944
Disable implicit package version verification when --no-restore is used
Workaround an error when building in ProdCon where the RuntimeFrameworkVersion is overridden externally. Generally, the error is good, but when --no-restore is  specified, we are okay ignoring this verification.
2018-04-19 12:24:10 -07:00
Javier Calvarro Nelson f70e83a317 Merge branch 'release/2.1' into dev 2018-04-19 09:46:08 -07:00
Mike Harder 55feeeab15
Add DeploymentParameters.Scheme property (#1388)
- Allows tests to use HTTPS with dynamic port "0"
2018-04-18 15:18:59 -07:00
Mike Harder 970bc8a30d
Add TestUrlHelper class and GetAddress() extension method (#1387) 2018-04-18 14:04:16 -07:00
Mike Harder 0cc416f1f9
Change SelfHostDeployer to use dynamic ports by default (#1383)
* Should significantly reduce flaky test failures due to AddressInUse exceptions
* Addresses https://github.com/aspnet/Hosting/issues/1296
2018-04-17 14:01:33 -07:00
Javier Calvarro Nelson e06b1fd690 [Fixes #1242] Moves IStartupConfigureServicesFilter and IStartupConfigureContainerFilter interfaces to the internal namespace 2018-04-17 12:31:09 -07:00
David Fowler a8c0970cde
Check for non-null RequestServices (#1378) 2018-04-13 09:45:38 -07:00
Justin Kotalik 5fd1f9e0e5 Merge remote-tracking branch 'origin/release/2.1' into dev 2018-04-12 16:33:29 -07:00
Chris Ross (ASP.NET) 4e1ba2a6c7 Delay process exit in ConsoleLifetime #1329 2018-04-12 10:07:44 -07:00
Justin Kotalik 6e957e436a
Support inprocess hosting in IISExpressDeployer via switching the HostingModel property. (#1368) 2018-04-02 12:01:53 -07:00
Chris Ross (ASP.NET) 05d1a6eb0e Refactor Generic Host lifetimes to work better with ServiceBase #1347 2018-03-23 12:02:44 -07:00
Ryan Brandenburg 1bac12716d Updating baselines 2018-03-21 15:32:09 -07:00
David Fowler 5748898fc4
Make the RequestServicesContainerMiddleware thinner (#1360) (#1362)
- Today the request services middleware is responsible for making sure there are request scoped services.
This PR tries introduces some breaking changes that are hopefully acceptable in order to gain some performance.
- Here are the assumptions this PR makes:
 - Since this middleware is first in the pipeline, the only thing that can
  set a default service provider would be the server itself. Since we have no servers that do that
  I removed that code that tries to noop if there's an existing service provider.
 - This PR no longer restores the previous service provider feature since it gets replaced every request
 anyways. Kestrel also clears out the feature on each request so it shouldn't be a problem (in theory).
 Once again, since this middleware is first, it is the last thing that runs before the server re-gains
 control on the way out so there's no need to restore anything.
 - We use the RegisterForDispose method to dispose of the IServiceProvider instead of doing it inline.
2018-03-21 08:58:03 -07:00
Chris Ross (ASP.NET) b6dc00229d Convert TestHost ResponseStream to use Pipes. 2018-03-07 15:22:20 -08:00
Nate McMaster 1f5379e38d
Merge branch 'release/2.1' into dev 2018-03-02 14:11:38 -08:00
Ryan Brandenburg 66714b5fc0 Use ExperimentalPackageVersion 2018-02-15 12:08:50 -08:00
Steve Gordon 8765d55f9f Fixing small typo in a comment (#1328) 2018-02-06 07:57:28 -08:00
BrennanConroy 60cbedf5ee
Don't throw in Nginx deployer dispose (#1327) 2018-02-02 13:44:48 -08:00
David Fowler 6b095cf533
Allow overriding the hosting service provider (#1325)
- Use the IServiceProviderFactory<IServiceCollection>
- Assert creation and disposal service providers
- Updated the tests to verify that service providers are created and disposed
- Called CreateBuilder even in the default case in case the service collection is modified as part of it.
2018-01-31 16:03:40 -08:00
David Fowler f8d61a4c52
Dispose the host if Initialize fails (#1324) 2018-01-31 16:00:55 -08:00
David Fowler cb55973c27
Dispose the host if Initialize fails (#1318) 2018-01-29 02:56:19 -08:00
Ryan Brandenburg 87db08e030 Add missing baselines 2017-12-28 11:46:56 -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
Pranav K 076e5fe6af Fixup name of SystemServiceProcessServiceControllerPackageVersion 2017-11-22 14:52:27 -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
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 f27a5a674e
Updates ANCM path to look in content files (#1268) 2017-11-14 11:39:21 -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 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
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
John Luo 993cd9f73d Trigger graceful shutdown on stopping webhost service 2017-11-08 11:06:36 -08:00