I am not so familiar with the castle impl. because i use the unhaddins version... But the pattern is the same and i dont think you need to pass the iconversation all over your code.
2010/10/11, Alessandro C. <[email protected]>: > Following the example of Markus > > http://using.castleproject.org/display/AR/Using+the+Conversation+Pattern > > I tried to change my application from single global session to a > session per conversation but every time you need to hit the database > you have to surround the operation with > using (new ConversationalScope(conversation)) > { > } > > more, if you have database access outside the form, for example a > method on a helper class, you have to pass the conversation to the > class if you want that method use the same conversation as the form. > > Is that correct or there is a way to share the conversation for the > entire form thread? > > Thanks, > --Alessandro > > -- > 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. > > -- Enviado desde mi dispositivo móvil -- 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.
