Commit Graph

69 Commits

Author SHA1 Message Date
Javier Calvarro Nelson e06b1fd690 [Fixes #1242] Moves IStartupConfigureServicesFilter and IStartupConfigureContainerFilter interfaces to the internal namespace 2018-04-17 12:31:09 -07:00
Ryan Brandenburg 1bac12716d Updating baselines 2018-03-21 15:32:09 -07:00
Nate McMaster c5f2333481 Pin tool and package versions to make build more repeatable 2017-10-31 13:04:32 -07:00
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
Javier Calvarro Nelson 6687f4eefc Update API check baselines to 2.0 2017-09-22 17:52:20 -07:00
Chris Ross 253be73b6f Misc generic host pr feedback (#1222) 2017-09-21 15:09:52 -07:00
Chris Ross (ASP.NET) ae9da9290e #1163 Implement the generic host 2017-09-14 14:48:06 -07:00
Nate McMaster 5ca9f8928f Use PackageLineup to manage PackageReference versions 2017-08-29 09:55:55 -07:00
Nate McMaster 9a4a43cc6a Use Directory.Build.props/targets 2017-08-29 09:52:04 -07:00
Javier Calvarro Nelson 964b671288 [Fixes #1012] Make it possible to override services when using UseStartup.
* Add IStartupConfigureServicesFilter to wrap ConfigureServices.
* Add IStartupConfigureContainerFilter<TContainerBuilder> to wrap
  ConfigureContainer.
* Make StartupLoader build a thunk for configure services that
  resolves all instances of IStartupConfigureServicesFilter and
  IStartupConfigureContainerFilter<TContainerBuilder> and wraps
  invocations to ConfigureServices and ConfigureContainer respectively.
* Refactor building the ConfigureServices callback into a private
  builder class due to the increased complexity in the process.
2017-08-23 14:32:51 -07:00
Justin Kotalik 1ea0647ae2 Update comments to reflect code behavior (#1182) 2017-08-22 16:46:00 -07:00
David Fowler b0a70aeef7 Add synchronous Start back to IWebHost (#1125)
* Add synchronous Start back to IWebHost
- Fixed extension methods to have a default(CancellationToken)
- Removed extension methods for Start, StartAsync and StopAsync
2017-07-01 15:00:54 -07:00
Pavel Krymets 0f0c88b8cd React to logging in DI changes (#1089) 2017-06-02 08:33:37 -07:00
BrennanConroy 03bdb40f8a Add UseShutdownTimeout Extension (#1086) 2017-05-23 16:20:41 -07:00
John Luo 62cd07d0a6 Target NETStandard2.0 and add WindowsServices back 2017-05-19 14:17:02 -07:00
Hisham Bin Ateya cf23aedb55 Use EnvironmentName instead of magic string (#1065) 2017-05-10 15:20:40 -07:00
John Luo 9b80f2a635 Migration 2017-05-05 17:12:36 -07:00
John Luo c812e9ae6f Doc comments: Add period at the end of the sentence. 2017-05-03 15:13:00 -07:00
John Luo 3c358e9028 Replace ConfigureLogging(Action<ILoggerFactory>) with ConfigureLogging(Action<LoggerFactory>) extension 2017-05-02 13:01:07 -07:00
Chris R 285d62b312 Move IHostedService to new Microsoft.Extensions.Hosting.Abstractions package. 2017-04-26 14:06:11 -07:00
Smit Patel a7221ca766 Update API Check related files
React to aspnet/BuildTools#238
2017-04-25 08:18:37 -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
= 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
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
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
Pranav K 31a2bdffce Remove net451 as a cross-compile target 2017-03-24 11:45: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
Nate McMaster 45874704a9 Unify dependency version to one file and remove workarounds 2017-03-15 11:01:09 -07:00
Nate McMaster 2a50762008 Upgrade to VS 2017 2017-02-01 10:35:51 -08:00
Pranav K 7ea92f08fc Updating to 4.4 CoreFx packages 2016-12-14 14:47:29 -08:00
David Fowler c6346cbde5 Review feedback for IApplicationLifetimeEvents
- Renamed the type to IHostedService and added Start and Stop.
- Split up the IHostedService execution and IApplicationLifetime to avoid
circular references
- Trigger IHostedService.Start after starting the server
- Trigger IHostedService.Stop before disposing the service provider

#895 #894
2016-12-13 21:22:33 -08:00
David Fowler 42594afd42 Introducing IApplicationLifetimeEvents (#875)
- Introduce a new DI friendly API for handling lifetime events. IApplicationLifetime isn't
isn't replaceable so we introduce a new DI friendly API that can be implemented to handle
lifetime events of an ASP.NET application. It should also make it possible to write up extension
on IWebHostBuilder to wire up to external systems that need to register the state of the application (like systemd).
- Run all handlers even if one throws
- Let both sets of event handlers run before throwing (IApplicationLifetimeEvents and IApplicationLifetime cancellation token callbacks).
2016-11-29 03:38:07 -08:00
Pranav K 21f7c89838 Updating versions to 1.2.0-* 2016-11-09 14:17:46 -08:00
jacalvar 911da31476 Created public API baselines 2016-11-04 15:17:13 -07:00
Pavel Krymets a29ceeb9e8 Deterministically dispose instances created by WebHostBuilder (#868) 2016-10-31 11:59:57 -07:00
Pavel Krymets 0f1eac5a98 React to DependencyInjection changes (#869) 2016-10-28 15:03:50 -07:00
Pranav K 37b1fc039d Updating partner package versions 2016-09-29 10:52:23 -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 ef0de2b6e7 Updating to dev versions 2016-06-16 10:17:56 -07:00
John Luo 4fccbeebdc Update metadata 2016-05-27 15:26:29 -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
Pranav K 7b5d7f7883 Merge branch 'release' into dev 2016-05-02 14:56:12 -07:00