次のような条件に基づいて、アスペクトがメソッド呼び出しを終了するようにしたいと思います。
[AttributeUsage(AttributeTargets.Method)]
public class IgnoreIfInactiveAttribute : OnMethodBoundaryAspect
{
public override void OnEntry(MethodExecutionEventArgs eventArgs)
{
if (condition)
{
**// How can I make the method return here?**
}
}
}
どんな助けでも大歓迎です。