I've been trying to make a custom ControllerFactory and had issues
with finding an initialised IControllerTree to add controllers to.

I decided to copy the complete DefaultControllerFactory.cs into my
assembly and debug how it all worked. I was surprised to find that
DefaultControllerFactory doesn't work if its selected form the
web.config. When it starts to initialise, it too can't find an
initialised IControllerTree.

The services documentation does say that services shouldn't rely on
any initialisation order, but it appears that this essentially what
default services do. How should I be doing it?

My current 'work-around' is to include
"Castle.Monorail.Framework.Services.DefaultControllerTree" before my
ControllerFactory in the web.config as this ensures it is initialised
first!

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to