public CommandSource(System.Management.Automation.CommandInfo command, CommandSourceLocation srcLocation) { CommandName = command.Name; CommandType = command.CommandType.ToString(); Source = command.Source; SourceLocation = srcLocation; }
public CommandSource(string commandName, string type, string source, CommandSourceLocation srcLocation) { SourceLocation = CommandSourceLocation.Unknown; }