because MS said that you may have more than one thread in a request.

2010/3/2 Zorgoban <[email protected]>

> 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.
>
>


-- 
Fabio Maulo

-- 
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