castle-dynamicproxy
Is it possible to add a property to a type, via a DynamicProxy?
I\'m using Castle DynamicProxy to create a proxy of a given type at runtime - including a couple mixins.[详细]
2023-01-09 19:05 分类:问答Datacontact for Castle.Proxies.EntityProxy failed
How to send Castle.Proxies.EntityProxy via WCF Channel? How to set the p开发者_运维知识库roxy as KnownType?you\'re doing it wrong. Don\'t send entities via the wire. Use dedicated Data Transfer Objec[详细]
2023-01-08 20:31 分类:问答Register multiple interceptors in castle windsor fluent
How do I register multiple interceptors usi开发者_C百科ng the fluent API?For a component? Component.For<Foo>().Interceptors<TestInterceptor1, TestInterceptor2>();[详细]
2023-01-06 02:50 分类:问答Overridding GetHashCode and Equals in Castle Dynamic Proxy 2.1 IModelInterceptorsSelector
I\'ve read that in order to get caching and push performance when using an Interceptor Selector when using Castle Dynamic Proxy that I need to override GetTy开发者_JAVA百科pe(), GetHashCode() and Equa[详细]
2023-01-05 15:17 分类:问答Event Interception with Castle DynamicProxy
In googling I can\'t seem to find an example of intercepting event on a proxied type and it doesn\'t seem to be working for me. Is there a way I can do this (ie. use a开发者_如何学Cn IInterceptor when[详细]
2023-01-02 02:22 分类:问答Can I specify to Castle Windsor which virtual methods to override in a class proxy?
I have many virtual methods in a class, but only one should be intercepted, Can I tell Castle Windsor to override only that method so I dont have to do validation in the Intercept 开发者_如何转开发met[详细]
2022-12-29 14:54 分类:问答Is it possible to generate dynamic proxy for static class or static method in C#?
I am trying to come up with a way t开发者_如何转开发hat (either static or instance) method calls can be intercepted by dynamic proxy. I want to implement it as c# extension methods but stuck on how to[详细]
2022-12-28 01:55 分类:问答How to intercept, parse and compile?
This is a problem I\'ve been struggling to solve for a while. I need a way to either replace code in the method with a parsed code from the template at compile time (PostSharp comes to mind) or to cre[详细]
2022-12-26 14:04 分类:问答Access custom attribute on method from Castle Windsor interceptor
I am trying to access a custom attribute applied to a method within a castle interceptor, e.g.: [MyCustomAttribute(SomeParam = \"attributeValue\")][详细]
2022-12-24 06:11 分类:问答Castle Dynamic Proxy in Windsor Container
I\'ve got a bit of a problem. I\'m working in the Castle Windsor IOC Container. Now what i wanted to do is just mess about with some AOP principles and what i specifically want to do is based on a met[详细]
2022-12-20 22:45 分类:问答