public Task Invoke(OutgoingTransportContext context, Func<Task> next) { var step = factory(); return step.Invoke(context, next); } }