Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aspect Oriented Development/Programming resource [closed]

Recently, I've had a request to implement logging for all of the Controller classes in my ASP.NET project. I've used postsharp and everything is working great! But, usual question: is there any OpenSource component or any pattern? Also, I want to know more about AOP design patterns, resources and real-world application.

like image 594
Amir Pournasserian Avatar asked Nov 14 '22 09:11

Amir Pournasserian


1 Answers

I've used Spring.NET AOP features with NHibernate to implement automatic SQL transaction commit/rollback. Depending on how those Controller classes are implemented in your ASP.NET application this might or not be a viable option. Sometimes a custom IHttpModule is sufficient.

like image 56
Darin Dimitrov Avatar answered Dec 22 '22 11:12

Darin Dimitrov