-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Check if Assembly has been registered
PostPosted: Sun Oct 21, 2007 10:32 am 
Beginner
Beginner

Joined: Fri Apr 27, 2007 11:50 am
Posts: 23
Hi Guys,

Is there any way of checking when adding an assembly to the NHibernate.Cfg.Configuration to see if the assembly has already been registered?

I am currently using Cuyahoga (a open source cms) and have just developed 3 modules for it (they share the same project as they share resources so didn't want to duplicate code)

The CMS dynamically loads the modules, and registers their assemblys with the Configuration object, however because they share the same assembley, it throws a DuplicateMappingException.

They only way i can think of is to do a try catch around the AddAssembly and just catch DuplicateMappingException and ignore it.

Does anybody know any better way?

Cheers guys

Matt


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.