I\'m trying to troubleshoot some startup time concerns. After doing some profiling, I\'ve found the main culprit is ClassProxyGenerator.GenerateCode. This takes 400-600ms per type the first time. So i
I have an object derived from an abstract base class and I want to intercept a method on the object. Does DynamicProxy support this scenario? I seem to only be able to create proxies by interface or
Using Castle.Windsor, how would I go about adding a IProxyGenerationHook or selector for one of several interceptors defined for a specific service. For example consider the following component regist
When proxying an object and intercepting a method using castle dynamic proxy, is it possible to get the return value of the target method? I have tried using the following methods,
In a project, I\'m using a Castle Dynamic Proxy to wrap all code run by a façade in try/catch blocks (sounds odd? Explai开发者_运维知识库ned here). That works fine, but to make sure all method calls
I have run into a bit of (what I think is) strange behaviour when using Castle\'s Dynamic Proxy. With the following code:
I made a simple test of the Castle Dynamic Proxy library: public class Printer { public virtual void Write(string msg)
I\'m working on a problem in which I have a number of entities, each of which has a corresponding one-to-many translations table, which specify the localized versions of entity\'s fields. (all of this
I am starting out with Castle DynamicProxy and I have this sample to track changes to properties of an object.
Is it possible to intercept an IInvocation using dynamic proxy and windsor (if windsor is even needed for such a case. I am using it to configure the proxy generation though)?