Hi Tim, You have the right idea but the services you are talking about are only used internally by MR, that is the way you can override the MR internal services.
I think for you, what you want is the integration with Windsor (IoC), have a look at: http://stw.castleproject.org/MonoRail.Windsor-Container.ashx Once you get familiar with Windsor, you won't go back! Cheers John ________________________________ From: Tim <[email protected]> To: Castle Project Users <[email protected]> Sent: Sat, 2 October, 2010 12:41:58 AM Subject: Use Service for Application Scope Class I'm using an object-persistence framework for Amazon SimpleDB called Simple Savant (http://simplesavant.codeplex.com/) I ideally only want to use one instance of the main 'SimpleSavant' class as this will take advantage of the built in caching. I guess that this should all be happening in a custom service and included in the web.config. I've tried importing my service with id="Custom" as per some documentation but I get: "NotSupportedException: Id not supported Custom" in DefaultMonoRailContainer.cs How should I be implementing a service that can be reached from every controller? -- 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. -- 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.
