Commit Graph

17 Commits

Author SHA1 Message Date
Pavel Krymets e892ed8bbd
Add a way to prevent specific hosting startup from runnning (#1243) 2017-10-27 16:52:39 -07:00
John Luo a63932a492 Add option to suppress writing startup messages 2017-10-02 14:08:54 -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
John Luo a64940a1f7 Remove PreferHostingUrls from options 2017-04-25 10:56:08 -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
David Fowler 58cc0bc3f9 Fix the configuration key name for PreferHostingUrls (#1034) 2017-04-22 10:12:16 -07:00
Chris R 62f74d5be0 #947 Add IServer.StopAsyc, IWebHost.StopAsync, and make Start async 2017-04-12 21:56:19 -07:00
John Luo 4cdc970055 Server addresses configuration enhancements
Add PreferHostingUrls to IServerAdressesFeature

Add extension to IWebHostBuilder to set this flag
2017-03-30 10:16:47 -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 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
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
Chris R 26e6036187 #698 Remove IServerFactory 2016-04-15 16:01:17 -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 5ac589317f Additional fiels in HostingEnvironment and Renames
- Added ApplicationName, ContentRootPath and ContentRootFileProvider
- Removed Configuration
- Removed MapPath
2016-03-14 16:21:56 -07:00
Chris R a31f840675 Rename environment variables to ASPNETCORE_. Remove the legacy ENV abbreviation. 2016-03-11 10:42:47 -08:00
N. Taylor Mullen e62ceb8528 Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:21:40 -08:00
N. Taylor Mullen c24e0297b2 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:21:33 -08:00