This commit is contained in:
454313500@qq.com
2021-03-21 02:13:08 +08:00
parent 367f8f8830
commit 1ecb92df33
7 changed files with 49 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
using Castle.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Text;
namespace CC.Yi.Common.Castle
{
public class CustomAutofacAop : IInterceptor
{
public void Intercept(IInvocation invocation)
{
{
//这里写执行方法前
}
invocation.Proceed();//执行具体的实例
{
//这里写执行方法后
}
}
}
}