can you create a test case?
Allan Ritchie wrote:
> So let's assume I have a proxy class instance ready
>
> Castle.Proxy.IMyClass (reflected proxy type)
>
> I have used reflection to get a particular method from it. In the
> implementation of the method I have:
> public void MyMethod(int arg1) {
> throw new Exception("Boo");
> }
>
> Now, I call:
> reflectedMethod.Invoke(instanceOfProxy, args); // this calls method
> and all interceptors correctly
>
> The exception gets gobbled up by invoke call. If I remove the
> interceptors, thereby removing the need for the proxy class, the
> exception is thrown as normal.
>
> Basically, I want those exceptions to thrown like normal. Anybody
> have any suggestions as to how I go about that?
>
>
>
> --
>
> 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=.
>
>
>
--
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=.