Commit Graph

34 Commits

Author SHA1 Message Date
Eilon Lipton 16c8d51d0b Fixes #76 - improve error messages in Hosting
Removed the TODOs from messages, and generally made them more readable.
2015-03-01 22:55:27 -08:00
Praburaj 6bf5eabd9f Hosting API review # 2
1. Moving HostingUtilities and PipelineInstance into internal namespaces.
2. Renaming some properties in IHostingEnvironment
3. Renaming IHttpContextAccessor HttpContext into Value.

Addresses:
https://github.com/aspnet/Hosting/issues/159
https://github.com/aspnet/Hosting/issues/157
https://github.com/aspnet/Hosting/issues/161
2015-02-27 11:30:38 -08:00
Eilon Lipton eb2887e5ef Merge pull request #153 from dtkujawski/dev
Ability to derive Startup from base class
2015-02-26 22:39:07 -08:00
Praburaj 435215b542 PR comments 2015-02-26 10:38:39 -08:00
Praburaj 00864c1af4 Hosting API review feedback # 1
Addresses:
https://github.com/aspnet/Hosting/issues/164
https://github.com/aspnet/Hosting/issues/163
https://github.com/aspnet/Hosting/issues/155
https://github.com/aspnet/Hosting/issues/156
https://github.com/aspnet/Hosting/issues/154
2015-02-25 16:05:22 -08:00
dtkujawski e95472e953 Switch from tabs to spaces 2015-02-12 23:45:26 -06:00
dtkujawski fe3675a9e0 Ability to derive Startup from a base class and have "Configure" and "ConfigureServices" be invoked from the base class when present. 2015-02-12 17:40:14 -06:00
Hao Kung f786fb7bd0 Add HttpContextAccessor 2015-01-12 10:22:15 -08:00
David Fowler a5ab614937 Removed the null check for IApplicationBuilder 2014-12-06 10:41:11 -08:00
David Fowler 559f5491d4 Make services registered in ConfigureServices work in Configure
- Added a test

#114
2014-12-06 10:41:10 -08:00
Hao Kung a9827a4310 GetDefaultServices -> AddHosting
Also stop adding options
2014-11-24 17:33:11 -08:00
Hao Kung ac6f1223df Hosting changes reacting to fallback being removed
- HostingServices.Create() is the supported way to create a service
collection with kre services imported
- IHostingEnvironment is now a normal service
- IConfigureHostingEnvironment is how you configure it
2014-11-20 17:23:31 -08:00
Hao Kung 7f1024aac0 Unify ConfigureServices to take IServiceCollection with Options 2014-11-04 12:32:24 -08:00
Stephen Halter cd90a337ee Change GetService calls to GetRequiredService
GetRequiredService throws for missing services like GetService used to.
2014-10-16 16:20:52 -07:00
Hao Kung 4efa6a428b Support IServiceProvider ConfigureServices() 2014-10-16 11:44:52 -07:00
Hao Kung 6466d1061e Use/EnsureRequestServices changes
- Split UseServices overloads into UseRequestServices and UseServices
- Add RequestServicesContainer class which contains the old
ContainerMiddleware logic and exposes a new
EnsureRequestServices(HttpContext) method which can be called to
populate RequestServices
- ConfigureServices now scans for Configure{Env}Services instead of
ConfigureServices{Env}
- Add OptionsServices as part of default HostingServices
2014-10-14 19:01:01 -07:00
Hao Kung 684aaed9bd Cleanup headers 2014-10-09 14:04:36 -07:00
Hao Kung 53eea70c06 Startup: Call ConfigureServices if exists 2014-10-08 12:05:44 -07:00
Chris Ross 200f894b5b Handle IBuilder rename to IApplicationBuilder. 2014-09-10 10:25:41 -07:00
Louis DeJardin 55271e8719 Supporting Startup method dependency injection
also changes method name from Configuration to Configure
also supports enviroment name command line and
2014-05-08 20:38:36 -07:00
Wei Wang 7c7efeda57 Fix ordering of usings and dependencies after namespace renaming 2014-05-06 14:59:55 -07:00
Chris Ross 3b57674141 Update DI dependency. 2014-05-06 11:11:00 -07:00
David Fowler a4816ab782 React to renames 2014-05-06 00:02:26 -07:00
Chris Ross 3141543f04 Fix HttpAbstractions dependency renames. 2014-05-05 16:26:26 -07:00
anpete e645599aa6 Update file headers 2014-05-01 17:39:17 -07:00
GrabYourPitchforks 4077c03a7b Hosting: Throw if startup method isn't void-returning. 2014-04-24 12:54:50 -07:00
GrabYourPitchforks ea1f93aa91 Fix bad call to Assembly.GetType in Hosting.
CR: chrross
2014-03-18 11:49:41 -07:00
Chris Ross 2b7272fe07 Review feedback. 2014-03-14 10:17:46 -07:00
Chris Ross 6a5cb913c8 Review cleanup. Cleaner Startup auto-detect. Fix tests. 2014-03-13 14:25:30 -07:00
Chris Ross ee4bb6de87 Review feedback. Style cleanup. Updated build template files. 2014-03-13 09:33:29 -07:00
Chris Ross a3eb280275 Implement Program.Main and ServerManager. Add Startup search. 2014-03-12 15:07:37 -07:00
David Fowler 7aeecf6bce Look for Startup and AssemblyName.Startup 2014-02-14 00:20:08 -08:00
Louis DeJardin 14679a78ee Implementing code review feedback 2014-02-10 18:18:10 -08:00
Louis DeJardin 0e813fbb79 Rough outline of hosting components 2014-02-09 23:25:56 -08:00