Nate McMaster
b6de45ee72
Reorganize source code in preparation to move into aspnet/AspNetCore
...
Prior to reorganization, this source code was found in 241d2c13df
2018-11-20 09:51:45 -08:00
Nate McMaster
9b1cfd59b5
Reorganize source code in preparation to move into aspnet/AspNetCore
...
Prior to reorganization, this source code was found in 0724e6cde1
2018-11-20 09:03:14 -08:00
Nate McMaster
87ab2744ce
Reorganize source code in preparation to move into aspnet/AspNetCore
...
Prior to reorganization, this source code was found in 3f7ee338d4
2018-11-19 22:00:32 -08:00
Chris Ross (ASP.NET)
241d2c13df
Add TestServer support for generic WebHost #1583
2018-11-19 14:55:18 -08:00
Chris Ross (ASP.NET)
f6cda4fab7
Make TestServer handle exceptions from OnStarting #1594
2018-11-16 16:39:50 -08:00
David Fowler
cfe9b26a34
Added support for generic host based IWebHostBuilder ( #1580 )
...
- This adds an implementation of IWebHostBuilder as a facade over the IHostBuilder.
This removes the 2 container issue by executing the Startup.ConfigureServies and Startup.ConfigureContainer inline as part of building the IHostBuilder.
- The implementation is highly compatible implementation since it exposes the same IWebHostBuilder interface.
Existing extensions mostly work.
- There are some caveats with this approach.
- Injecting services into Startup is not extremely constrained to the
services availble on HostBuilderContext. This includes the IHostingEnvironment
and the IConfiguration.
- IStartup is broken when using this pattern because it isn't composable.
- The IStartupConfigureServicesFilter and IStartupConfigureContainer The before
and after filters added in 2.1 are also broken because there's a single container (it could maybe be fixed by downcasting and doing something specific on the GenericHostBuilder instance).
- Calling into IWebHostBuilder.Build will throw a NotSupportedException since
this implementation is just a facade over the IHostBuilder.
2018-11-13 21:22:30 -08:00
Nate McMaster
d7b9fd4807
Update TFM to include netcoreapp3.0
2018-10-30 11:26:46 -07:00
Chris Ross (ASP.NET)
5a3c664566
Merge branch 'release/2.2'
2018-10-10 14:33:17 -07:00
Pavel Krymets
27e4e1aca3
Remove RestoreOnPublish parameter ( #1533 )
2018-10-09 10:41:52 -07:00
Luke Latham
e30ae8cc3d
Fix typo ( #1559 )
2018-10-05 08:11:04 -07:00
Nate McMaster
3483a32505
automated: merge branch release/2.2
2018-09-28 17:27:30 -07:00
David Fowler
f17142b2ec
Delay resolution until after application services are built ( #1553 )
...
- Resolve the logger from the right service provider to log duplicate hosting startup assemblies.
- Don't create a 3rd IServiceProvider if we resolved the default implementation.
2018-09-24 10:41:30 -07:00
Mike Harder
3f7ee338d4
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-09-19 12:35:51 -07:00
David Fowler
5543d29af1
Merge branch 'release/2.2' => 'master'
2018-09-07 01:29:38 -07:00
David Fowler
04b365a22f
Don't hold onto the HttpContext in the HostingLogScope ( #1531 )
...
- Multiple things capture the ExecutionContext, reduce the changes of improperly rooting the HttpContext when we only need a few properties from the request.
2018-08-27 11:59:56 -07:00
Alfred Myers
c9a4ee8b71
Change List<Action> to Action ( #1480 )
2018-08-27 10:33:05 -07:00
Chris Ross (ASP.NET)
66e65635ad
Merge branch 'release/2.2'
2018-08-09 14:02:35 -07:00
Chris Ross (ASP.NET)
b078521f17
Hold open the nginx dynamic port
2018-08-09 12:30:32 -07:00
Pavel Krymets
44056697e6
Merge branch 'merge/release/2.2-to-master'
2018-08-01 13:46:05 -07:00
Pavel Krymets
658906bf7c
Add TestApplication to allow publish output caching ( #1511 )
2018-07-31 16:36:31 -07:00
Justin Kotalik
6efdf78fb5
IIS ANCM support in test matrix ( #1509 )
2018-07-27 11:48:57 -07:00
Nate McMaster
a3dd609ae6
Merge branch 'release/2.2'
2018-07-26 17:07:54 -07:00
Nate McMaster
fed2eb1cdf
More robust username discovery on Linux in NginxDeployer ( #1508 )
...
VSTS does not have the LOGNAME env var set. This adds some fallbacks (USER and USERNAME) and `whoami` if they are not present.
2018-07-26 17:07:24 -07:00
Nate McMaster
be3691aee8
Merge branch 'release/2.2'
2018-07-26 09:33:54 -07:00
Hao Kung
c4e8dd3664
Rename WebHostBuilderFactory ( #1505 )
2018-07-25 16:44:20 -07:00
Justin Kotalik
864caa20b4
Merge branch 'merge/release/2.2-to-master'
2018-07-18 15:25:08 -07:00
Justin Kotalik
1186741977
Merge release/2.2 into master
2018-07-18 14:34:38 -07:00
Justin Kotalik
21d9ec64f0
Add copy constructor to deployment parameters ( #1497 )
2018-07-18 14:28:48 -07:00
Pavel Krymets
19839ed308
Revert "Merge pull request #1494 from aspnet/revert-1493-pakrym/useiis" ( #1496 )
...
This reverts commit 7a0a1ee50b , reversing
changes made to ec0b7ab2cd .
2018-07-17 21:05:59 -07:00
Pavel Krymets
65f8cfc55b
Revert "Remove IISExpress deployer ( #1493 )"
...
This reverts commit ec0b7ab2cd .
2018-07-17 12:07:42 -07:00
Pavel Krymets
ec0b7ab2cd
Remove IISExpress deployer ( #1493 )
2018-07-17 10:16:50 -07:00
Pavel Krymets
51c94337d7
/systray:false ( #1486 )
2018-07-10 11:29:39 -07:00
nulltoken
3e0b689ac2
Ensure ClientHandler properly honors Host header ( #1483 ) Fix #1481
2018-07-06 13:00:25 -07:00
Henk Mollema
cfab182399
Revert "Inherit web IHostingEnvironment and IApplicationEnvironment from the Generic Host one ( #1461 )" ( #1467 )
...
This reverts commit 8672b1b04a .
2018-06-18 10:47:17 -07:00
Henk Mollema
8672b1b04a
Inherit web IHostingEnvironment and IApplicationEnvironment from the Generic Host one ( #1461 )
2018-06-16 03:18:48 -07:00
Mike Harder
c5de0e1892
Pass timeout to WaitForExit() on "dotnet publish" ( #1453 )
...
* Addresses https://github.com/aspnet/Hosting/issues/1451
2018-06-11 15:09:58 -07:00
Chris Ross (ASP.NET)
8d55a447d4
Allow running some IIS Express variants without publishing #1431
2018-05-31 15:15:04 -07:00
Hao Kung
23e3ab6555
Add TestPortHelper class for tests ( #1438 )
...
* Add TestPortHelper class for tests
* Remove copy
* Update IISExpressDeployer
2018-05-30 13:55:46 -07:00
Rutger Storm
a3300a6a60
Add try..finally around RunAsync and WaitForTokenShutdownAsync #1194
...
The try..finally ensures that the ManualResetEventSlim which AttachCtrlcSigtermShutdown uses is set even when an exception occurs in these two methods.
2018-05-25 09:21:26 -07:00
Chris Ross (ASP.NET)
09d3b32fe5
Enable x86 testing #949
2018-05-23 09:35:26 -07:00
John Luo
eda6940350
Fix integration testing after logging change
2018-05-17 13:05:49 -07:00
Chris Ross (ASP.NET)
3b5b40884f
Refactor integration testing for test matrix generation.
2018-05-16 09:51:50 -07:00
Justin Kotalik
5227de9a31
Always check if ANCM is in the base output folder. ( #1420 )
2018-05-15 18:11:12 -07:00
Ryan Brandenburg
38f691c09e
Upgrade to netcoreapp22 ( #1410 )
2018-05-08 11:02:12 -07:00
Justin Kotalik
fb08967c9f
Make Deployers handle ANCM V1 and V2 ( #1407 ) ( #1409 )
2018-05-03 13:49:21 -07:00
Justin Kotalik
10a4b84061
Revert "Make Deployers handle ANCM V1 and V2 ( #1407 )"
...
This reverts commit 52802d1afa .
2018-05-02 14:58:53 -07:00
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