public object?Invoke(CommandContext commandContext, object instance, ExecutionDelegate next) { WasInvoked = true; try { return(_backingInvocation.Invoke(commandContext, instance, next)); } catch (Exception e) { InvocationError = e; throw; } }
public object Intercept(IInvocation invocation) { return(invocation.Invoke()); }