Class AddExistingProjectItemCommandHandler
Command handler for the AddExistingProjectItemCommandDefinition.
[CommandHandler]
public class AddExistingProjectItemCommandHandler : ScriptCommandHandlerBase<AddExistingProjectItemCommandDefinition>, ICommandHandler<AddExistingProjectItemCommandDefinition>, ICommandHandler
- Inheritance
-
AddExistingProjectItemCommandHandler
- Implements
- Inherited Members
Constructors
AddExistingProjectItemCommandHandler(IShell, IFileProjectItemFactory[])
Initializes a new instance of the AddExistingProjectItemCommandHandler class.
[ImportingConstructor]
public AddExistingProjectItemCommandHandler(IShell shell, IFileProjectItemFactory[] factories)
Parameters
shell
IShellGemini shell.
factories
IFileProjectItemFactory[]Project item factories.
Exceptions
- ArgumentNullException
Thrown when
shell
orfactories
is null.
Methods
Run(Command)
Shows the AddNewProjectItemViewModel dialog for adding a new item by template.
public override Task Run(Command command)
Parameters
command
CommandThe executing command.
Returns
- Task
The running task.
Update(Command)
Updates the command.
public override void Update(Command command)
Parameters
command
CommandThe executing command.