A request can use more than one thread.

   Diego


On Tue, Mar 2, 2010 at 05:25, Zorgoban <[email protected]> wrote:

> Hello!
>
> I am implementing something like the UnitOfWork example from
>
> http://nhforge.org/wikis/patternsandpractices/nhibernate-and-the-unit-of-work-pattern.aspx
> .
> In this example, the Session is stored in HttpContext for Web-
> Projects. After thining about this concept for some while, Ive come to
> the question: Why store the Session in HttpContext? Since each request
> is maximally handled in a Thread and there is no hierarchically lower
> entity, why this complicated approach? I think it should be more than
> enough to use the thread static field. Can anyone tell me, if Im
> right?
>
> Greetings!
> Zorgoban
>
> --
> 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.

Reply via email to