AsyncDolls.Pipeline.Incoming.IncomingPipeline.InvokeTransport C# (CSharp) Method

InvokeTransport() private method

private InvokeTransport ( AsyncDolls.Pipeline.Incoming.IncomingTransportContext context, IBusForHandler bus, int currentIndex ) : System.Threading.Tasks.Task
context AsyncDolls.Pipeline.Incoming.IncomingTransportContext
bus IBusForHandler
currentIndex int
return System.Threading.Tasks.Task
        Task InvokeTransport(IncomingTransportContext context, IBusForHandler bus, int currentIndex = 0)
        {
            if (currentIndex == registeredTransportPipeline.Count)
            {
                return Task.CompletedTask;
            }

            IIncomingTransportStep step = registeredTransportPipeline[currentIndex];

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