Intercept method calls

前端 未结 6 1293
故里飘歌
故里飘歌 2020-12-06 08:30

Is there a way of intercepting some method calls without making any code changes around the method itself?

I don\'t need to inject any custom behaviour at runtime,

6条回答
  •  盖世英雄少女心
    2020-12-06 09:00

    You can use any AOP Frameworks, like to Spring .NET or Unity, to intercept calls, before or after the method execute. Thus, you dont need to change your method code.

提交回复
热议问题