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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With