Justin Kotalik
500668619f
Detect duplicate startups in HostingStartupAssemblies ( #1183 )
2017-09-18 11:47:34 -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
Nate McMaster
e7541e99a7
Upgrade to xunit 2.3.0-beta4
2017-08-22 15:25:22 -07:00
Christian Weiss
07f96a444e
Always log startup exceptions
2017-08-08 09:55:30 -07:00
Chris R
a2962d54f1
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-02 12:23:47 -07:00
Pavel Krymets
0f0c88b8cd
React to logging in DI changes ( #1089 )
2017-06-02 08:33:37 -07:00
Nate McMaster
5bcc76d32c
Remove dependency on DataProtection
...
Reverse changes made in #1064
2017-06-01 16:26:54 -07:00
BrennanConroy
03bdb40f8a
Add UseShutdownTimeout Extension ( #1086 )
2017-05-23 16:20:41 -07:00
Chris R
7ac6842d18
#1075 Suppress exceptions from failing to load HostingStartup assemblies
2017-05-23 10:36:57 -07:00
Nate McMaster
5cf3d9ab11
Upgrade test framework versions and fix test issues
2017-05-15 14:44:17 -07:00
Chris Ross (ASP.NET)
13ea876ca1
Register IApplicationDiscriminator service
2017-05-05 17:07:22 -07:00
BrennanConroy
a1579f190f
React to Logging API changes
2017-05-01 10:19:51 -07:00
Pavel Krymets
ba2bca4a96
Run IHostingStartup's before materializing IConfiguration ( #1052 )
2017-04-27 08:14:09 -07:00
Pavel Krymets
6d42b2fe86
Expose WebHostBuilderContext in UseDefaultServiceProvider ( #1043 )
2017-04-25 10:08:44 -07:00
Chris R
8377d226f1
Execute IHostingStart instances in the primary assembly ( #1033 )
...
* #1000 Execute IHostingStart instances in the primary assembly
Also make the sample app runnable.
Add an opt-out flag, more tests
2017-04-25 07:30:11 -07:00
Andrew Stanton-Nurse
ce650eee7f
react to removal of PlatformAbstractions ( #1023 )
2017-04-20 09:30:40 -07:00
=
853b3847ad
Updates for WebHostBuilderContext overloads
2017-04-19 14:02:23 -07:00
glennc
2b07e88a58
Add overloads to ConfigureServices to accept the WebHostBuilderContext and make the context accessible in more locations.
2017-04-19 14:00:17 -07:00
Chris R
62f74d5be0
#947 Add IServer.StopAsyc, IWebHost.StopAsync, and make Start async
2017-04-12 21:56:19 -07:00
Cesar Blum Silveira
39164eeb40
Simplify WebHostBuilderTests.CanUseCustomLoggerFactory.
...
- Keep all the code in the test itself, instead of in an
extension method. Makes it easier to understand what's
happening without having to look up the extension
method's definition.
2017-04-05 11:23:54 -07:00
glennc
0ab882b6d3
Allow configuration and logging to be configured on WebHostBuilder, setting up for the removal of AddProvider from ILoggerFactory.
2017-04-04 14:43:13 -07:00
David Fowler
ddb1bfeb20
Add support for executing IHostingStartup in specified assemblies ( #961 )
...
* Add support for executing IHostingStartup in specified assemblies
- Assemblies that are specified in the "hostingStartupAssemblies" configuration (; delimited)
setting can specify assemblies that use an assembly level attribute (HostingStartupAttribute)
to specify a type that implements IHostingStartup. This allows hosting environments to
extend the IWebHostBuilder with platform specific behavior before the application runs.
- Added tests
- Log errors that occur during load and execution of the IHostingStartup
when capture startup errors is off. This happens on start of the application.
- Added debug logging on startup to print out the hosted startup assemblies hosting
processed
#951
2017-03-22 20:23:04 -07:00
David Fowler
d57d729d13
Enable configuring the default service provider ( #943 )
...
* Enable configuring the default service provider
- Added UseDefaultServiceProvider method
- Made DelegateStartup use the IServiceProviderFactory. One downside
here is that we can't use 3rd party DI containers with the Configure
delegate since it's hardcoded to the the specific Startup type but that's
not a regression.
2017-02-14 21:25:43 -08:00
Nate McMaster
2a50762008
Upgrade to VS 2017
2017-02-01 10:35:51 -08:00
Pavel Krymets
a29ceeb9e8
Deterministically dispose instances created by WebHostBuilder ( #868 )
2016-10-31 11:59:57 -07:00
Kiran Challa
9c44d493ca
Revert "Revert "Remove existing implementation of StartupExceptionPage and use the one in Common""
...
This reverts commit 3f6b558cf3 .
2016-08-29 12:40:13 -07:00
Kiran Challa
3f6b558cf3
Revert "Remove existing implementation of StartupExceptionPage and use the one in Common"
...
This reverts commit 83e0d4798e .
2016-08-25 17:21:29 -07:00
Kiran Challa
83e0d4798e
Remove existing implementation of StartupExceptionPage and use the one in Common
...
[Fixes #831 ] Fix startup exception page to handle flattened exceptions
2016-08-25 16:27:30 -07:00
BrennanConroy
f60aa7aa70
Replace some of PlatformAbstractions with RuntimeInformation
2016-05-31 10:38:03 -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
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
David Fowler
9830dffabd
Merge from release
2016-04-19 10:31:13 -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
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
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
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
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
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
John Luo
5ac589317f
Additional fiels in HostingEnvironment and Renames
...
- Added ApplicationName, ContentRootPath and ContentRootFileProvider
- Removed Configuration
- Removed MapPath
2016-03-14 16:21:56 -07:00
John Luo
9ade9da2f7
Revert ApplicationBasePath default resolution #641
2016-03-14 10:31:08 -07:00
Chris R
a77e7cf6da
Allow ConfigureServices to be called multiple times.
2016-03-10 16:15:22 -08:00
John Luo
b48b5f1553
Set default ApplicationName and ApplicationBase in ApplicationEnvironment #613
2016-03-10 15:45:05 -08:00
Kiran Challa
cf6d7f9a56
Enabled tests to run in dotnet xunit runner
2016-02-11 17:19:13 -08:00
moozzyk
79df7c9ca7
Resolving relative application base paths
2016-02-04 12:48:48 -08:00