What are the differences between LinFu.DynamicProxy and Castle.DynamicProxy?

I am a committer to Castle, contributing to Dynamic Proxy, so I may be biased, but I generally think Castle’s Dynamic proxy is far better solution. I’m talking here about LinFu DynamicProxy v1.0 because that’s what I’m familiar with. LinFu.Proxy 2 is based on Mono.Cecil and is rewritten from the scratch. Castle covers wider range … Read more

Intercept the call to an async method using DynamicProxy

Presumably the “problem” is that it’s just logging that it’s returning a task – and you want the value within that task? Assuming that’s the case, you still have to return the task to the caller, immediately – without waiting for it to complete. If you break that, you’re fundamentally messing things up. However, before … Read more

Castle DynamicProxy – Failure when creating proxy involving a GTP used as a GTR

I’m not a Castle expert nor compiler guru, but I believe the issue is a little bit of magic that is hidden inside the RhinoMocks.Tests assembly: From https://github.com/ayende/rhino-mocks/blob/master/Rhino.Mocks.Tests/TestInfo.cs using System.Runtime.CompilerServices; using Rhino.Mocks; [assembly: InternalsVisibleTo(RhinoMocks.StrongName)] And for completeness sake, RhinoMocks.StrongName is defined as: /// <summary> /// Used for [assembly: InternalsVisibleTo(RhinoMocks.StrongName)] /// Used for [assembly: InternalsVisibleTo(RhinoMocks.NormalName)] /// … Read more