castle-dynamicproxy
DynamicProxy Generation Speed
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[详细]
2023-04-02 07:55 分类:问答Intercepting method from abstract parent on derived instance using DynamicProxy
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[详细]
2023-04-01 22:04 分类:问答method selector on one of many interceptors for a service registered in Castle.Windsor
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[详细]
2023-03-30 18:05 分类:问答Castly Dynamic Proxy - Get the target method's return value
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,[详细]
2023-03-22 19:51 分类:问答Castle Dynamic Proxy wants to intercept Object.GetType()
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[详细]
2023-03-19 12:59 分类:问答Castle Dynamic Proxy not intercepting method calls when invoked from within the class
I have run into a bit of (what I think is) strange behaviour when using Castle\'s Dynamic Proxy. With the following code:[详细]
2023-03-18 05:37 分类:问答Using Castle Dynamic Proxy - Possible to control and/or remove interceptors
I made a simple test of the Castle Dynamic Proxy library: public class Printer { public virtual void Write(string msg)[详细]
2023-03-17 21:07 分类:问答Mixing in side-table data with NHibernate interceptors and DynamicProxy
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[详细]
2023-03-12 14:26 分类:问答Performance advice for using Castle DynamicProxy in .NET web-apps
I am starting out with Castle DynamicProxy and I have this sample to track changes to properties of an object.[详细]
2023-03-12 11:12 分类:问答How to intercept an IInvocation using dynamic proxy?
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)?[详细]
2023-03-04 07:39 分类:问答