I see that there is PostSharp AOP support for Silverlight, but is there a product that works like the Castle DynamicProxy library, but in Silverlight?
Are you asking a question with another question? :-)Dynamic proxy seems to have a broken silverlight version, and I can't seem to determine if LinFu supports Silverlight.
Jason Young
2009-11-09 21:19:12
I have seen Castle Dynamic Proxy working with Silverlight. There is no official Silverlight port of LinFu.DynamicProxy, but you should be able to create one (and make it available only for everyone :) ) in a short amount of time
Paco
2009-11-09 22:22:22
LinFu.DynamicProxy supports SilverLight, and the DLL itself is only 20KB: http://is.gd/aQGB2
plaureano
2010-03-20 21:55:08
@plaureano: Thanks I didn't know there was a silverlight port already.
Paco
2010-03-20 22:29:40
+2
A:
For runtime AOP you can use Castle DynamicProxy. Yep, it works. I just grabbed the binaries for Castle Silverlight DynamicProxy for the Silverlight RhinoMocks package @ http://www.ayende.com/20/section.aspx/download/230
For compile time AOP, consider Mono.Cecil which I've used successfully on Silverlight assemblies. Presumably, other frameworks that enable compile time AOP should work as well.
JustinAngel
2009-11-10 02:43:56