Class NewProjectCommandHandler
Command handler for the NewProjectCommandDefinition.
[CommandHandler]
public class NewProjectCommandHandler : ScriptCommandHandlerBase<NewProjectCommandDefinition>, ICommandHandler<NewProjectCommandDefinition>, ICommandHandler
- Inheritance
-
NewProjectCommandHandler
- Implements
- Inherited Members
Constructors
NewProjectCommandHandler(IShell, IProjectViewModelFactory, IProjectTemplateService, IWindowManager)
Initializes a new instance of the NewProjectCommandHandler class.
[ImportingConstructor]
public NewProjectCommandHandler(IShell shell, IProjectViewModelFactory projectViewModelFactory, IProjectTemplateService projectTemplateService, IWindowManager windowManager)
Parameters
shell
IShellGemini shell.
projectViewModelFactory
IProjectViewModelFactoryFactory for project view models.
projectTemplateService
IProjectTemplateServiceService for project templates.
windowManager
IWindowManagerWindow manager.
Methods
Run(Command)
Creates a new IProject to the active IProjectViewModel.
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.