internal Pipeline(System.Management.Automation.Runspaces.Runspace runspace, CommandCollection command) { this._setPipelineSessionState = true; if (runspace == null) { PSTraceSource.NewArgumentNullException("runspace"); } this._pipelineId = runspace.GeneratePipelineId(); this._commands = command; }