NuDeploy.Core.Services.Installation.PowerShell.PipelineExecutor.PipelineExecutor C# (CSharp) Méthode

PipelineExecutor() public méthode

public PipelineExecutor ( System.Management.Automation.Runspaces.Runspace runSpace, string command ) : System
runSpace System.Management.Automation.Runspaces.Runspace
command string
Résultat System
        public PipelineExecutor(Runspace runSpace, string command)
        {
            this.pipeline = runSpace.CreatePipeline(command);
            this.pipeline.Commands[0].MergeMyResults(PipelineResultTypes.Error, PipelineResultTypes.Output);

            this.pipeline.Output.DataReady += this.OutputDataReady;
            this.pipeline.Error.DataReady += this.ErrorDataReady;
        }