You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IApplicationEventListener 不实现的时候是没问题的,实现的时候,拦截报错如下 Declaration referenced in a method implementation cannot be a final method. Type: 'AspectCore.DynamicGenerated.SimpleEventListener'. Assembly: 'AspectCore.DynamicProxy.Generator, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
目标接口
IApplicationEventListener 不实现的时候是没问题的,实现的时候,拦截报错如下
Declaration referenced in a method implementation cannot be a final method. Type: 'AspectCore.DynamicGenerated.SimpleEventListener'. Assembly: 'AspectCore.DynamicProxy.Generator, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
补充:
使用方法
拦截器标注定义和 IApplicationListener 定义
nuget:
<PackageReference Include="aspectcore.extensions.dependencyinjection" Version="2.4.0" />
The text was updated successfully, but these errors were encountered: