In DO 4 there is a notion of a current Session. It is stored in thread local storage. This causes troubles in systems where requests are handled on a thread pool like ASP.NET. What is the expected usage pattern of DO for such systems?

The main trouble is that DO itself in some cases when transaction scope is disposed references tls-stored Session.

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by lopata.

asked Jul 15 '09 at 06:23

Editor's gravatar image

Editor
46145156157


One Answer:

Alex (Xtensive) wrote:

We're aware about this: http://code.google.com/p/dataobjectsdot ... ail?id=243

The priority of this issue is set to overnight. We've been using DO4 with ASP.NET MVC internally, so there is a solution. The only reason it isn't integrated into DO4 source yet is lack of time. You can expect the build & description in few days (i.e. on this week).


Alex Kofman wrote:

There is no simple way to handle such situations now, we will probably extend DataObjects API to solve the problem. I think we'll make till the next Tuesday. Now you can just use temporary solution like this: http://www.lijnco.nl/dev/DomainManager.cs


Alex (Xtensive) wrote:

Related issues:


Alex Kofman wrote:

ASP.NET sample is available now. You can download it from DataObjects.Net downloads page (see "Samples" folder).

answered Jul 15 '09 at 08:46

Editor's gravatar image

Editor
46145156157

lopata wrote: I would appreciate of you could post the workaround, or at least give a hint which approach to take. Thanks!

(Jul 15 '09 at 08:46) Editor Editor's gravatar image

We'll add it to the official Samples folder before the next release.

(Jul 15 '09 at 08:46) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×569

Asked: Jul 15 '09 at 06:23

Seen: 1,479 times

Last updated: Jul 15 '09 at 06:23

powered by OSQA