Commit Graph

30 Commits

Author SHA1 Message Date
Praburaj 0dbbd2f655 Adding some tests for the MapPath extension method
And looks like I pushed the MapPath extension change too soon. I had to fix an issue in the path for forward and backward slash.

For example if an application tries to do MapPath("/resource") then this code does not work cross plat unless the directory separator characters are fixed appropriately.

Fixed it and also added some test coverage.
2015-03-23 17:43:36 -07:00
Hao Kung 19b75b688a Rework hosting
- IStartupFilter support
- Rework HostingEngine
- AutoRequestScope by default via (IStartupFilter)
- RIP RequestContainer
2015-03-19 10:57:34 -07:00
Praburaj 3b0d5fd422 Add extension method for getting environment name
Fixes: https://github.com/aspnet/Hosting/issues/100
2015-03-16 13:13:50 -07:00
Hao Kung 7adf11b7bc React to DI changes 2015-03-04 18:25:49 -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
Praburaj 435215b542 PR comments 2015-02-26 10:38:39 -08:00
Praburaj a2eec4f863 Changing the IHttpContextFactory.CreateHttpContext take in a IFeatureCollection
Addresses: https://github.com/aspnet/Hosting/issues/162
2015-02-25 17:48:46 -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
Chris Ross 36c2a44b91 Handle IFileSystem rename. 2015-01-20 08:37:10 -08:00
Chris Ross 03e4739a3f Re-merge IWebRoot & IHostingEnv. 2014-12-04 17:23:21 -08:00
Chris Ross b883968eef #86 - Implement IWebRootFileSystemProvider 2014-12-04 14:44:16 -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
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 684aaed9bd Cleanup headers 2014-10-09 14:04:36 -07:00
Chris Ross 200f894b5b Handle IBuilder rename to IApplicationBuilder. 2014-09-10 10:25:41 -07:00
David Fowler 04ca5e968d Fixed tests 2014-05-30 22:32:37 -07:00
Louis DeJardin 7edc2dfbe9 Fixing unit tests 2014-05-08 22:36:56 -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
Wei Wang d8ff084dc1 Update dependency namespace 2014-05-05 19:55:23 -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
Chris Ross 982cf2a1d6 Code review cleanup. 2014-03-20 21:14:20 -07:00
Chris Ross 11762840cd Add an Initialize step to IServerFactory. 2014-03-20 21:14:18 -07:00
David Fowler c3e0279aac Updated to use service collection 2014-03-14 14:22:20 -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
Louis DeJardin f59d29b5eb Renaming DefaultServices to GetDefaultServices 2014-02-10 17:57:44 -08:00
Louis DeJardin 0e813fbb79 Rough outline of hosting components 2014-02-09 23:25:56 -08:00