John Luo
3b488c470a
Make IHostedServiceAsync
2017-05-26 10:52:08 -07:00
BrennanConroy
c8bf886e92
Fix tests not running as expected ( #1080 )
2017-05-22 15:16:35 -07:00
BrennanConroy
b6f558d60b
Fix flaxy test ( #1079 )
2017-05-19 16:40:41 -07:00
BrennanConroy
c7bac3133f
Chain hosting timeout to StopAsync cancellation token ( #1078 )
2017-05-19 16:32:45 -07:00
Hisham Bin Ateya
cf23aedb55
Use EnvironmentName instead of magic string ( #1065 )
2017-05-10 15:20:40 -07:00
BrennanConroy
a1579f190f
React to Logging API changes
2017-05-01 10:19:51 -07:00
Chris R
285d62b312
Move IHostedService to new Microsoft.Extensions.Hosting.Abstractions package.
2017-04-26 14:06:11 -07:00
John Luo
f63feeeac2
Skip flaky test
2017-04-25 10:18:39 -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
John Luo
c8003c0305
Remove addition of default address to IServerAddressesFeature when none is specified
2017-03-02 15:12:52 -08:00
Chris R
37d41f36c7
React to IHeaderDictionary ContentLength change
2017-01-18 13:46:34 -08:00
David Fowler
2c5dc9a75c
CR feedback
...
- Added license to file
- Removed extra space
2016-12-13 21:30:08 -08:00
David Fowler
80ae7f056c
Fix test name
2016-12-13 21:22:33 -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
Pavel Krymets
a29ceeb9e8
Deterministically dispose instances created by WebHostBuilder ( #868 )
2016-10-31 11:59:57 -07:00
John Luo
b955ec7743
Update shutdown logic for hosted applications
...
- Guarantee the ordering of ApplicationLifetime events
- Guarantee that the callbacks of each event is completed before the next event is triggered
2016-07-21 11:14:51 -07:00
Cesar Blum Silveira
a2ee01272a
React to HttpAbstractions@8212694.
2016-05-31 17:05:39 -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
41b4e6017e
Removed irrelevant tests
2016-05-20 22:03:14 -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
933a2f5a1d
Don't dispose the server anymore, the container does it
2016-04-18 22:47:28 -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
BrennanConroy
8c69989a5f
React to logging changes
2016-04-01 12:02:09 -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
ac7741fe81
Configure IStartupFilters in FIFO order #653
2016-03-17 15:51:32 -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
Brennan
3ea44c6f75
React to Logging API changes
2016-01-27 14:01:49 -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