Beispiel #1
0
        public override void Invoke(IInvocation invocation)
        {
            base.Invoke(invocation);

            this.LastCall = invocation;
            if (callBase)
                invocation.InvokeBase();
            else
                invocation.ReturnValue = this.defaultValue;
        }
Beispiel #2
0
        public override void Invoke(IInvocation invocation)
        {
            base.Invoke(invocation);

            this.LastCall = invocation;
            if (callBase)
            {
                invocation.InvokeBase();
            }
            else
            {
                invocation.ReturnValue = this.defaultValue;
            }
        }
Beispiel #3
0
        /// <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;
		}
Beispiel #4
0
        /// <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);
        }