private void RunPipelineTargets(IPipeline pipeline) { pipeline.Begin(); for (var i = 0; i < _TargetObject.Length; i++) { pipeline.Process(_TargetObject[i]); } pipeline.End(); }
private void RunPipelineTargets(IPipeline pipeline, PSObject templateSource) { pipeline.Begin(); for (var i = 0; i < 100; i++) { pipeline.Process(templateSource); } pipeline.End(); if (pipeline is IDisposable d) { d.Dispose(); } }
private void RunPipelineNull(IPipeline pipeline) { pipeline.Begin(); pipeline.Process(null); pipeline.End(); }