v1.0.2
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Autofac.Extras.DynamicProxy" Version="6.0.0" />
|
||||
<PackageReference Include="Castle.Core" Version="4.4.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
23
CC.Yi.Common/Castle/CustomAutofacAop.cs
Normal file
23
CC.Yi.Common/Castle/CustomAutofacAop.cs
Normal 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();//执行具体的实例
|
||||
{
|
||||
|
||||
//这里写执行方法后
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user