Hi!

I'm creating proxies this way:

        public static T Build<T>() where T : class, new()
        {
            var notifierInterceptor = new NotifierInterceptor();
            var validationInterceptor = new ValidationInterceptor();

            var proxy =
_generator.CreateClassProxy<T>(validationInterceptor,
notifierInterceptor);
            return proxy;
        }

I've found that, when validationInterceptor executes and throws an
error, the other interceptor doesn't gets a chance to run. I've tried
to reverse the order that they're passed to method:

            var proxy =
_generator.CreateClassProxy<T>(notifierInterceptor,
validationInterceptor);

But same thing, validationInterceptor always runs first.

What can I do to handle that?

Thanks

-- 
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.

Reply via email to