views:

104

answers:

1

i have several classes in my service layer.

i want to before call methods of these(every class),call they method of a spesific class after the spesific class call them.how is that possible in c#?

example at ASP.NET MVC :

CONTROLLER CLASESES -> A SPESIFIC CLASS -> SERVICE CLASSES

because i need to central logging,exception handling,checking user role and permissions.....

+2  A: 

Check this out

RailRhoad
thanks man but its about controller,i am looking for my service layer(pure c# code)
tobias
Check out an Enterprise Library implementation: http://elegantcode.com/2009/01/20/enterprise-library-logging-101/
RailRhoad
i found out the http://www.postsharp.org/i think,it can/will be serve for me.
tobias