AOP with MonoTouch

I was wondering if there is support for AOP (Aspect Oriented Programming) along with MonoTouch (and thus with MonoDevelop).

So far, I have not been able to find tools that support MonoDevelop. As far as I understand, tools like PostSharp are not supported.

+5
source share
3 answers

I was able to get PostSharp to work on Mono for Android (with Visual Studio). I have not used MonoTouch, but you can still try: http://mgroves.com/monodroid-with-postsharp/

+3
source

, , MonoTouch. IIRC PostSharp - , IL .

, MonoTouch ( .NET, Mono Android), , iOS , JIT . , MonoTouch AOT ( ).

, , , , . . OSX, ( #, AOT). /Makefile .

+2

Fody addin, StaticProxy.Fody, , . , , , - "- " "- " "-". , , , /, [StaticProxy]. , , (== > ).

Also, since it adds a constructor argument, using the dependency injection container is basically mandatory (it interrupts the β€œnew calls to Foo (..)”). I have already created extensions for ninject and unity:

nuget packages are available, and I would really welcome it if someone could test the integration of MonoTouch / MonoDroid. I am afraid that I am currently creating the nuget package incorrectly.

I also plan to add automatic factory implementations (for example, the ninject ".ToFactory ()" binding).

+2
source

All Articles