AsyncDolls.AsyncStateWithDolls.Chain.InnerInvoke C# (CSharp) 메소드

InnerInvoke() 개인적인 메소드

private InnerInvoke ( IncomingContext context, int currentIndex ) : System.Threading.Tasks.Task
context IncomingContext
currentIndex int
리턴 System.Threading.Tasks.Task
        Task InnerInvoke(IncomingContext context, int currentIndex = 0)
        {
            if (currentIndex == executingElements.Count)
            {
                return Task.CompletedTask;
            }

            ILinkElement step = executingElements[currentIndex];

            return step.Invoke(context, () => InnerInvoke(context, currentIndex + 1));
        }
    }