Yes, there is
http://kozmic.net/2009/02/14/castle-dynamic-proxy-tutorial-part-v-interceptorselector-fine-grained-control/

On Wed, 8 Aug 2018 at 15:54 'gusgorman' via Castle Project Users <
castle-project-users@googlegroups.com> wrote:

> Hello,
>
> I want to mark methods for interception using an attribute.
>
> The attribute will have a few properties which will be then used to
> configure the interceptor (by setting the corresponding properties on it).
>
> The code in SelectInterceptors would check if the method has the
> attribute, if so get it, and then configure the appropriate interceptor and
> return it.
>
> If an interceptor is added to the container and marked as transient, will
> a new instance be created and passed to SelectInterceptors every time a
> method is called?
>
> I want to make sure this approach is safe in a multi user web environment
> where the services themselves (ie the candidates for interception) are
> stored in the container as singletons.
>
> Or is there a better approach?
>
> many thanks,
> Jordan.
>
> --
> 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 castle-project-users+unsubscr...@googlegroups.com.
> To post to this group, send email to castle-project-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/castle-project-users.
> For more options, visit https://groups.google.com/d/optout.
>
-- 

sent from my phone
Krzysztof

-- 
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 castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to