That's what I thought first but trying that (new 
ProxyGenerator().CreateInterfaceProxyWithoutTarget<IFooBar>(options)) 
causes:

An unhandled exception of type 'System.NotImplementedException' occurred in 
Castle.Core.dll
Additional information: This is a DynamicProxy2 error: There are no 
interceptors specified for method 'void Dong1()' which has no target. When 
calling method without target there is no implementation to 'proceed' to 
and it is the responsibility of the interceptor to mimic the implementation 
(set return value, out arguments etc)

So I assumed interceptor is required. Am I doing something wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to