-
Notifications
You must be signed in to change notification settings - Fork 326
Open
Description
`public interface IAccountService
{
public void DoWork();
}
public class AccountService : IAccountService
{
public AccountService() {
}
public void DoWork()
{
Work1();
Work2();
Work3();
}
public void Work1()
{
Console.WriteLine("Work1");
}
[CustomInterceptor("Test")]
public void Work2()
{
Console.WriteLine("Work2");
}
public void Work3()
{
Console.WriteLine("Work3");
}
}`
当我把 [CustomInterceptor("Test")] 设置到DoWork方法上,是可以正常拦截的,但是我设置在Work2 上面就无法正常拦截了,这是为什么呢?
我有特殊的场景需要这样做。 请告诉我这种方式能不能支持?我该怎么办?
Metadata
Metadata
Assignees
Labels
No labels