I have a WCF service that uses Castle Windsor and Nhibernate, currently I am using LifestylePerWebRequest and everythig works fine. I want to add to the service so that it also listens to messages from a queue and essentially call the same methods that the webservice, however I realize this might not work as my Nhibernate repositories are using the LifestylePerWebRequest scope.
Can I set dynamically change the lifestyle depending on the situation?
Thanks