Commit Graph

8 Commits

Author SHA1 Message Date
Louis DeJardin
493fb03afe PERF: CreateWorkContextScope shouldn't call InstancePerMatchingLifetimeScope
http://orchard.codeplex.com/workitem/16869
CreateWorkContextScope now creates a child container with no alteration to the component registry
WorkContextModule added to group the related set of component registrations
HttpContextBase still injectable, but it's exposed in a way that doesn't require updating the child container per request

--HG--
branch : perf
2010-11-24 18:57:42 -08:00
Louis DeJardin
d726952cfc Updating unit test to use IWorkContextAccessor
The shell route's data token no longer has an IContainerProvider interface added

--HG--
branch : dev
2010-09-20 12:11:36 -07:00
Louis DeJardin
c4e1cbeb53 Continued adjustments
Removing direct references to IContainer and IContainerProvider from within components
Fixing broken tests

--HG--
branch : dev
2010-09-02 22:14:07 -07:00
Louis DeJardin
963c159743 Adding prefix adjustment in route matches
Complications with login make this impractical for the time being, but mechanically it does work to some extent.

--HG--
branch : dev
2010-04-28 11:36:27 -07:00
Louis DeJardin
4b15c18ce0 Integrating routing work into project
Uncommenting old route collection publisher tests
Factoring wrapping handler into async and non-async cases
Adding [IContainerProvider] to datatokens at the time the routedata is matched

--HG--
branch : dev
2010-04-23 11:45:30 -07:00
Louis DeJardin
ca222e60f7 Implementing and testing request-to-shell mapping in RunningShellTable
Trailing host and leading path equality is required (by ordinal-ignore-case)
Longest stated host name is primary quality consideration for selection
Longest stated path prefix is secondary quality consideration, for shells of equal stated host names
Single unqualified shell matches only if all qualified shells fail first statment
'Default' unqualified (no stated host/path) shell takes precidence over other unqualified shells
No match occurs if 'Default' is qualified, multiple other shells are unqualified, and no qualified match occurs

--HG--
branch : dev
2010-04-22 19:35:31 -07:00
Louis DeJardin
1fa348b6b6 Adding request url data to settings struct and making name of prefix more specific
--HG--
branch : dev
2010-04-22 16:06:07 -07:00
Louis DeJardin
79431a11a2 Further progress towards tenant-specific routing
Ability to follow redirects from integration tests
Route publisher wraps handler with ShellRoute which controls request lifetime scope
ShellRoute at the moment is restricted to "Default" - host and prefix TBD
Route publisher remove-and-insert routes for a specific tenant to allow incremental and repeated shell route publish
Offers a more deterministic knowledge of which shell container is used than just-in-time http context
Removes Autofac default httpmodule, controller factory, httpapplication icontainerprovideraccessor, etc
Adds support for optional ~/Config/Sites.{yourtenantname}.config file for manual per-shell component override
Integration tests capture Orchard and NHibernate trace output. Levels are configurable in orchard.specs diagnostics.config
Concept of IRunningShellTable instroduced. Might not be needed - will be removed if so.

--HG--
branch : dev
2010-04-22 12:23:58 -07:00