Can't you use an IHandlerSelector and register your IDatabaseConfiguration implementations in the container? The selector will take care of choosing the right one.
On Thu, Jul 9, 2009 at 06:00, Vadim Kantorov <[email protected]>wrote: > > I consider having a kind of IDatabaseConfiguation which in production > just builds a session factory against the production database and in > testing it would export the schema of the database and change the > database to the testing one. So far so good :) > > I've got my bootstrapper which uses the session factory in order to > register a kind of singleton in the container. > I would like to inject the test database configuration to make it > happen. > > Unforunately I've found that bootstrappers are created just by calling > Activator.CreateInstance. Found no way to provide your own > bootstrapper instance into the host. > > Resolving bootstrapper type from a container or providing a way to > inject a bootstrapper instance into the host seem to be the solutions. > > Any considerations? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" 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/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
