castle-dynamicproxy Questions

5

Solved

I am using castle DynamicProxy and was wondering if there is a way of detecting if a Type is a proxy without referencing Castle DynamicProxy? So while I am using Castle DynamicProxy as an example ...
Nolte asked 28/7, 2009 at 11:1

2

Solved

I have many AOP libraries that use Castle DynamicProxy with Autofac DI container for logging, auditing, transaction control, etc. I wonder if there is a way to declare interceptors using the defau...
Studdingsail asked 10/3, 2020 at 1:54

5

Solved

My questions is related to this post Intercept the call to an async method using DynamicProxy I want to implement interceptor that works with async methods that returns Task or Task<T> resul...
Garrik asked 22/1, 2015 at 22:15

4

I'm using Castle DynamicProxy to add an interceptor to my types. Now I need to get the underlying base type (NOT the proxy itself). I found a few hints on SO that suggested to use the ProxyUtil cl...
Brownnose asked 18/6, 2012 at 12:29

2

Solved

Some time ago I published an open source library which heavily relies on Castle DynamicProxy. Now that .NET Core 1.x RTM is out, I don't find how I could support .NET Core (Castle DynamicProxy stil...
Skyward asked 4/10, 2016 at 11:18

1

Solved

I'm having an issue with cross-assembly / friend assembly type visibility. I have the following program (which I sign / strong-name). It tells Castle DynamicProxy (I'm using version 4.2.1 of the C...

8

Solved

Below is the code from the Intercept method on a custom type that implements IInterceptor of the Castle Dynamic Proxy library. This snippet is from an AOP based logging proof-of-concept console app...
Cathicathie asked 11/1, 2013 at 23:3

2

I have a class that I proxy it with Castle Dynamic Proxy. I want to add some custom Attributes to proxy methods (which is not defined in proxied class). Is this possible. I want this because I wan...

3

Solved

I wrote an example like this Simple Calculator class : public class Calculator { public int Add(int a, int b) { return a + b; } } implemented "IInterceptor" that provided by DynamicProxy ...

1

We basically have a class that looks like this below that is using the Castle.DynamicProxy for Interception. using System; using System.Collections.Concurrent; using System.Reflection; using Syste...
Annmarie asked 19/9, 2016 at 19:53

1

Solved

namespace DynamicInterception { public class Calculator { public virtual int Div(int a, int b) { try { return a / b; } catch (Exception ex) { Console.WriteLine(ex.Message.ToString()); r...
Busey asked 18/8, 2016 at 8:56

1

Solved

I am working on upgrading our project from .Net 2 to .Net4.5, at the same time I'm pushing as many references as I can to NuGet and making sure the versions are current. I am having a problem gett...
Kirkman asked 25/9, 2013 at 17:48

2

Solved

I have an IoC setup with Autofac and use AoP interceptors. Normally, I use interface interceptors registered like this: var builder = new ContainerBuilder(); builder.RegisterType<MyType>() ...
Bladder asked 22/8, 2014 at 14:53

1

Solved

I'm using Simple Injector in my asp.net mvc 4 project. I can't figure out how can I use Simple Injector with castle proxy interceptor.

2

I have a Castle Interceptor that I'm trying to apply via attributes. It's working great when I apply my Interceptor attribute at class-level, but it's not working at all when I'm applying at method...
Skaw asked 15/1, 2014 at 21:11

1

Solved

How to use Castle DynamicProxy to initialize a constructor with parameters? In this case MyClass(int). public class MyClass { public MyClass(){} public MyClass(int p1){} } Currently, CreateCla...
Paving asked 22/9, 2013 at 8:14

1

Solved

When I use Moq directly to mock IBuilderFactory and instantiate BuilderService myself in a unit test, I can get a passing test which verifies that the Create() method of IBuilderFactory is called...

1

OK, now I'm really confused. I originally had this problem, which is, according to posters, an issue with the version of Castle.DynamicProxy that's ILMerged into the latest Rhino.Mocks library. It...
Prehensile asked 8/2, 2012 at 0:13

2

After applying the Microsoft Security update on the 8th of January 2013 http://technet.microsoft.com/en-us/security/bulletin/ms13-004 we have started to experience failures in our CI builds on our ...
Sesquicentennial asked 29/1, 2013 at 8:16

1

Solved

I have a scenario like this: I'm using interceptor to catch calls to a class that is inside assembly (let's call it Feature) that is referenced by main project. Assembly Feature is installed by Nu...
Tannin asked 25/11, 2012 at 16:30

1

Solved

I'm learning to use Ninject and Interceptor pattern. I have the following interceptor. public class MyInterceptor:IInterceptor { public void Intercept(IInvocation invocation) { Console.WriteLi...

0

What I'm trying to achieve is AOP via attributes using Castle Windsor interceptors. I've had some success but having trouble with the aspects at the class level vs. the method level. If I use cla...
Toole asked 27/7, 2012 at 15:9

1

Solved

I installed with NuGet the packages NHibernate and Castle.Core 3.0 for a new project. Usually we copied around the dlls manually; it is the first time I do that with NuGet. Now I can't find out ho...

1

Solved

I have run into a bit of (what I think is) strange behaviour when using Castle's Dynamic Proxy. With the following code: class Program { static void Main(string[] args) { var c = new Intercep...
Caudate asked 9/7, 2011 at 9:23

2

Solved

I need to use Castle DynamicProxy to proxy an interface by providing an instance of it to ProxyGenerator.CreateInterfaceProxyWithTarget. I also need to make sure that calls to Equals, GetHashCode a...
Kirwin asked 3/6, 2010 at 19:51

© 2022 - 2025 — McMap. All rights reserved.