Yes you should be able to do it and no you're not doing anything wrong as far as I can tell.
It should be working... Can you create a isolated reproduction? Krzysztof 2010/10/9 Mandro <[email protected]> > I'm having problems with implementing interceptor for WCF Client > Proxies generated using Windsor container. > > First of all: currently in my project I have windsor WCF integration > implemented almost exactly as described here: > http://dotnet.dzone.com/news/windsor-wcf-integration > There's new requirement to add client-side caching to the project. I > was thinking to utilize the interceptors on proxies generated by WCF > in more or less this way: > > <component id="customerService" > type="Mike.WindsorWCFIntegration.ICustomerService, > Mike.WindsorWCFIntegration" > wcfEndpointConfiguration="customerClient"> > <interceptors> > <interceptor>${CacheInterceptor}</interceptor> > </interceptors> > </component> > > <component id="CacheInterceptor" > type=" Mike.WindsorWCFIntegration.CacheInterceptor, > Mike.WindsorWCFIntegration"> > </component> > > but the interceptor isn't fired at all. Interceptor implementation has > only one line of code to check it's fired - it's not. > > I know that Interceptors will work only on virtual methods but I'm > unsure how proxy object looks inside. Also from this article: > > http://kozmic.pl/archive/2009/08/09/making-asynchronous-wcf-calls-without-svcutil.aspx > I've seen that you've been able to hookup somehow to proxy class > method invocation, so it should be possible. > > I've googled a lot and haven't found very much, so I ask for help > here ;-) So, is it possible to intercept WCF service calls on client, > before there're are actually sent over to server? Or am I doing > something terribly wrong? > > -- > 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]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > -- 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.
