Exemplo n.º 1
0
        private void RunPipelineTargets(IPipeline pipeline)
        {
            pipeline.Begin();

            for (var i = 0; i < _TargetObject.Length; i++)
            {
                pipeline.Process(_TargetObject[i]);
            }

            pipeline.End();
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
 private void RunPipelineNull(IPipeline pipeline)
 {
     pipeline.Begin();
     pipeline.Process(null);
     pipeline.End();
 }