Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# paulh 1/17/2005 3:05 AM
Martin

First of all to say that I really like the design and resulting product - the mixture of design/business/data in in DNN/Rainbow modules always struck me as really messy.

I did notice one minor problem that might occur on multi-processor boxes however, your SessionFactory singleton is not thread-safe. It's very easy to fix however, just change the declaration to

private static SessionFactory _sessionFactory = new SessionFactory();

and remove the assignment from the property get. The reasons are explained in the following MSDN article

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/singletondespatt.asp

Regards

Paul
# martijnb 1/17/2005 4:40 AM
Paul thanks for the tip!

I'll change it for the next release.