Пример #1
0
        public CommandSource(System.Management.Automation.CommandInfo command, CommandSourceLocation srcLocation)
        {
            CommandName = command.Name;
            CommandType = command.CommandType.ToString();
            Source      = command.Source;

            SourceLocation = srcLocation;
        }
Пример #2
0
 public CommandSource(string commandName, string type, string source, CommandSourceLocation srcLocation)
 {
     SourceLocation = CommandSourceLocation.Unknown;
 }