Class OpenProjectCommandHandler
Command handler for the OpenProjectCommandDefinition.
[CommandHandler]
public class OpenProjectCommandHandler : ScriptCommandHandlerBase<OpenProjectCommandDefinition>, ICommandHandler<OpenProjectCommandDefinition>, ICommandHandler
- Inheritance
-
OpenProjectCommandHandler
- Implements
- Inherited Members
Constructors
OpenProjectCommandHandler(IShell, IProjectTemplateService, IProjectViewModelFactory)
Initializes a new instance of the OpenProjectCommandHandler class.
[ImportingConstructor]
public OpenProjectCommandHandler(IShell shell, IProjectTemplateService projectTemplateService, IProjectViewModelFactory projectViewModelFactory)
Parameters
shell
IShellGemini shell.
projectTemplateService
IProjectTemplateServiceService for project templates.
projectViewModelFactory
IProjectViewModelFactoryFactory for view models.
Methods
Run(Command)
Loads an 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.