Passing unserializable types between add-ing and host

Dec 29, 2010 at 10:11 AM


I need to pass some types which cannot be serialized between host and plug-in.  An article states that "There are many other capabilities MAF provides such as versioning, passing collections and WPF visuals, passing non-serializable types, etc." My addins are responsible for managing different tables in the database and are using NHibernate for persistance, so I want to pass the ISessionFactory from the host to the add-ins. Is that possible? Any advice will be appriciated.