private Task InvokeLogical(OutgoingLogicalContext context) { if (this.executingLogicalPipeline.Count == 0) { return(Task.FromResult(0)); } IOutgoingLogicalStep step = this.executingLogicalPipeline.Dequeue(); return(step.Invoke(context, () => this.InvokeLogical(context))); }
Task InvokeLogical(OutgoingLogicalContext context) { if (executingLogicalPipeline.Count == 0) { return(Task.CompletedTask); } IOutgoingLogicalStep step = executingLogicalPipeline.Dequeue(); return(step.Invoke(context, () => InvokeLogical(context))); }