Example #1
0
 private void AfterInvoke(object[] pipeStates, bool isFaulted, Exception exception)
 {
     for (var pipeIndex = _pipes.Count - 1; pipeIndex >= 0; --pipeIndex)
     {
         var afterInvokeArgs = new AfterInvokeArgs(this, pipeStates[pipeIndex], isFaulted, exception);
         _pipes[pipeIndex].AfterInvoke(afterInvokeArgs);
     }
 }
Example #2
0
        private void AfterInvoke(object[] pipeStates, bool isFaulted, Exception exception)
        {
            if (pipeStates == null)
            {
                throw new InvalidOperationException("Missing pipe states, did you call SetupForInvocation in your handler invoker?");
            }

            for (var pipeIndex = _pipes.Count - 1; pipeIndex >= 0; --pipeIndex)
            {
                var afterInvokeArgs = new AfterInvokeArgs(this, pipeStates[pipeIndex], isFaulted, exception);
                _pipes[pipeIndex].AfterInvoke(afterInvokeArgs);
            }
        }
Example #3
0
        private void AfterInvoke(object[] pipeStates, bool isFaulted, Exception exception)
        {
            if (pipeStates == null)
                throw new InvalidOperationException("Missing pipe states, did you call SetupForInvocation in your handler invoker?");

            for (var pipeIndex = _pipes.Count - 1; pipeIndex >= 0; --pipeIndex)
            {
                var afterInvokeArgs = new AfterInvokeArgs(this, pipeStates[pipeIndex], isFaulted, exception);
                _pipes[pipeIndex].AfterInvoke(afterInvokeArgs);
            }
        }
Example #4
0
 public void AfterInvoke(AfterInvokeArgs args)
 {
     if (AfterCallback != null)
         AfterCallback(args);
 }