From: Mike D. <mik...@gm...> - 2004-11-11 20:05:02
|
Hi Hammett! I'm working on getting the code for NHibernate to use the latest DynamicProxy code and am running into some problems :) One of the problems I'm having is around serialization of the proxies. In your old version the method GetObjectData() was passed to the IInvocationHandler. In the new version it looks like GetObjectData is completely handled by the DynamicProxy and never handled by IInvocation - is that true or am I doing something wrong? My old logic was to serialize the class instance that was being proxied if it has been read from the db, or if the class had not been instantiated yet then serialize a class that was capable of recreating the proxy during deserialization. I'm open for any suggestions on how to handle this with the new code base. Thanks! Mike |