AFAIK this is a limitation of the approach, if you need the same session you should use the GUI Thread. Meaning you should block...
Gustavo. On Tue, Jan 4, 2011 at 3:27 PM, Børgi <[email protected]> wrote: > Hello! > > What I want to accomplish is Conversation-per-Presenter. > I'm done with the Castle.Windsor SessionFactory / Dao magic, so I can > inject ready to use Daos in my Presenters. > > It all works fairly well as long as I don't use Backgroundworkers for > data-queries. > I didn't think about this before, but now it's clear to me: accessing > my Daos in BackgroundWorker-Threads always results in a fresh > conversation / session because of the > ThreadLocalConversationalSessionContext. > > Is there a way to use only one conversation / session on the whole > form and also be able to use Backgroundworker? > Could somebody direct me in the right direction please? > > Best Regards, > Sebastian > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en.
