Table of Contents

Class NewProjectCommandHandler

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

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 IShell

Gemini shell.

projectViewModelFactory IProjectViewModelFactory

Factory for project view models.

projectTemplateService IProjectTemplateService

Service for project templates.

windowManager IWindowManager

Window manager.

Methods

Run(Command)

Creates a new 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.