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