Table of Contents

Class OpenProjectCommandHandler

Namespace
Loehnert.Lisrt.Scripting.Project.Commands
Assembly
Loehnert.Lisrt.Scripting.dll

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 IShell

Gemini shell.

projectTemplateService IProjectTemplateService

Service for project templates.

projectViewModelFactory IProjectViewModelFactory

Factory for view models.

Methods

Run(Command)

Loads an IProject to the active IProjectViewModel.

public override Task Run(Command command)

Parameters

command Command

The executing command.

Returns

Task

The running task.

Update(Command)

Updates the command.

public override void Update(Command command)

Parameters

command Command

The executing command.