Hi! I've been trying to write an interceptor, using Castle Dynamic Proxy 2, for NHibernate entities. All is well if they are not lazy, but if they are marked as lazy, I get NotImplementedExceptions all over the place! I start with a NHibernate EmptyInterceptor and I override the Instantiate method. I check, using ISessionFactory.GetClassMetadata, if the entity is lazy (HasProxy = true), and I have NHibernate create a proxy for it, then I pick up it's Type, and have Dynamic Proxy generate a proxy for it. Just for testing purposes, no extra interfaces and no no interception, at all, I simply call invocation.Proceed() on the Intercept method of my Castle Dynamic Proxy IInterceptor implementation. Have any of you guys tried to do something like this? Any suggestions?
Thanks! Ricardo Peres -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
