public CommandSource(System.Management.Automation.CommandInfo command, CommandSourceLocation srcLocation) { CommandName = command.Name; CommandType = command.CommandType.ToString(); Source = command.Source; SourceLocation = srcLocation; }
internal CommandProcessorBase(System.Management.Automation.CommandInfo commandInfo) { this._pipelineActivityId = Guid.Empty; this.arguments = new Collection<CommandParameterInternal>(); this.firstCallToRead = true; if (commandInfo == null) { throw PSTraceSource.NewArgumentNullException("commandInfo"); } this.commandInfo = commandInfo; }
internal CommandProcessorBase(System.Management.Automation.CommandInfo commandInfo) { this._pipelineActivityId = Guid.Empty; this.arguments = new Collection <CommandParameterInternal>(); this.firstCallToRead = true; if (commandInfo == null) { throw PSTraceSource.NewArgumentNullException("commandInfo"); } this.commandInfo = commandInfo; }