public override void Invoke(IInvocation invocation) { base.Invoke(invocation); this.LastCall = invocation; if (callBase) invocation.InvokeBase(); else invocation.ReturnValue = this.defaultValue; }
public override void Invoke(IInvocation invocation) { base.Invoke(invocation); this.LastCall = invocation; if (callBase) { invocation.InvokeBase(); } else { invocation.ReturnValue = this.defaultValue; } }
/// <summary> /// Sets the return value to the default one according /// to the return type, as implemented by <see cref="DefaultValue"/>. /// </summary> public AspectAction ExecuteFor(IInvocation invocation) { invocation.InvokeBase(); return AspectAction.Stop; }
/// <summary> /// Sets the return value to the default one according /// to the return type, as implemented by <see cref="DefaultValue"/>. /// </summary> public AspectAction ExecuteFor(IInvocation invocation) { invocation.InvokeBase(); return(AspectAction.Stop); }