Exemple #1
0
        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;
 }
Exemple #3
0
 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;
 }