private void AddSegmentRunner(Func <ISegmentRunnerFactory, ISegmentRunner> createSegmentRunner) { var segmentRunner = createSegmentRunner(segmentRunnerFactory); pipeline.AddSegmentRunner(segmentRunner); }