Table of Contents

Class InitializeModulesCommandHandler

Namespace
Loehnert.Lisrt.Modules.Commands
Assembly
Loehnert.Lisrt.Modules.dll

Command handler for reinitializing the modules recursively.

[CommandHandler]
public class InitializeModulesCommandHandler : CommandHandlerBase<InitializeModulesCommandDefinition>, ICommandHandler<InitializeModulesCommandDefinition>, ICommandHandler
Inheritance
InitializeModulesCommandHandler
Implements
Inherited Members
Extension Methods

Constructors

InitializeModulesCommandHandler(IOperatingModeManager, IModulesService)

Initializes a new instance of the InitializeModulesCommandHandler class.

[ImportingConstructor]
public InitializeModulesCommandHandler(IOperatingModeManager operatingModeManager, IModulesService modulesService)

Parameters

operatingModeManager IOperatingModeManager

Operating mode manager.

modulesService IModulesService

Modules configuration service.

Exceptions

ArgumentNullException

Thrown when operatingModeManager or modulesService is null.

Methods

Run(Command)

Recursively exits the RootModules and initializes.

public override Task Run(Command command)

Parameters

command Command

The executing command.

Returns

Task

The running task.

Update(Command)

Updates the command handler.

public override void Update(Command command)

Parameters

command Command

The executing command.