PostSharp 无法使用 OnMethodInvocationAspect
PostSharp Unable to use OnMethodInvocationAspect
我正在使用 Post sharp 运行时版本 - v2.0.50727 版本 - 4.2.20.0,我无法使用能够使用 OnMethodInvocationAspect
。我在这里做错了什么?
Csharp Runtime Version - v4.0.30319
OnMethodInvocationAspect
在 PostSharp 中不再可用。您可以改用 OnMethodBoundaryAspect
或 MethodInterceptionAspect
。
这是可用方面的列表 类:http://doc.postsharp.net/simple-aspects
下面是 MethodIntercetionAspect
的示例:http://doc.postsharp.net/example-guithread
我正在使用 Post sharp 运行时版本 - v2.0.50727 版本 - 4.2.20.0,我无法使用能够使用 OnMethodInvocationAspect
。我在这里做错了什么?
Csharp Runtime Version - v4.0.30319
OnMethodInvocationAspect
在 PostSharp 中不再可用。您可以改用 OnMethodBoundaryAspect
或 MethodInterceptionAspect
。
这是可用方面的列表 类:http://doc.postsharp.net/simple-aspects
下面是 MethodIntercetionAspect
的示例:http://doc.postsharp.net/example-guithread