Sorry, I have another question: is it possible to set this proxy options during the registration, so I can add an extension method, like: Component.For<IInterface>().Interceptor<...>().OmitProxyTarget();
El lunes, 7 de febrero de 2011 11:55:41 UTC-3, Nick Peeples escribió: > Sorry for the long time between responses, busy week that last one. > > Krzysztof, that did help. Just the confirmation that you can't create and > return a proxy through a factory method was enough so that I could abandon > trying that route. > > I have enabled the functionality that I need with an Interceptor as > someone else mentioned, which is essentially what I was attempting in the > first place. The one thing I had to dig into was to set .OmitTarget like > this: > > ProxyUtil.ObtainProxyOptions(model, true).OmitTarget = > true; > > After I did that, the desired functionality is achieved with a simple > Component.For<IInterface>(); > > - Nick > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/mUHqQM04spAJ. 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.
