Applying Aspect Oriented Programming

后端 未结 2 841
清歌不尽
清歌不尽 2020-12-17 16:44

I\'ve been using some basic AOP style solutions for cross-cutting concerns like security, logging, validation, etc. My solution has revolved around Castle Windsor and Dynam

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 17:32

    Couple of minor issues with PostSharp...

    One issue I've had with PostSharp is that whilst using asp.net, line numbers for exception messages are 'out' by the number of IL instructions injected into asssemblies by PostSharp as the PDBs aren't injected as well :-).

    Also, without the PostSharp assemblies available at runtime, runtime errors occur. Using Windsor, the cross-cuts can be turned off at a later date without a recompile of code.

    (hope this makes sense)

提交回复
热议问题