public void Intercept(IInvocation invocation)
        {
            var chaosInvocation = _chaosFactory.CreateChaosInvocation(_implementType, invocation.Method, invocation.Arguments);

            invocation.ReturnValue = _subjects.Call(chaosInvocation);
        }
示例#2
0
 public ChaosInvocation CreateChaosInvocation(Type implementType,
                                              MethodInfo invocationMethod,
                                              object[] invocationArguments)
 {
     return(_next.CreateChaosInvocation(implementType, invocationMethod, invocationArguments));
 }