Hey, I'm using Castle Windsor in a multi tenant web application and I'm registering an ISessionFactory per tenant. With a HandlerSelector I select a SessionFactory based on the hostname of the website. This all works well and my repositories get the correct SessionFactories.
But I also have a HttpModule that opens a Session on the SessionFactories per webrequest. In the HttpModule I do Container.ResolveAll<ISessionFactory >() but this always returns me all SessionFactories and not aly the one for my current tenant. Next thing I tried was the CollectionResolver and a class that has a constructor that takes IEnumerable<ISessionFactory> as argument. But I can't get that working either, I discovered that the HasOpinionAbout method gets called for IEnumerable<ISessionFactory> but when I go further to the SelectHandler method I notice that there are no handlers. So is there a way to combine the SelectHandler with ResolveAll or/and with the CollectionResolver? Regards, Jochen -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/castle-project-users. For more options, visit https://groups.google.com/groups/opt_out.
