Class InitializeModulesCommandHandler
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
IOperatingModeManagerOperating mode manager.
modulesService
IModulesServiceModules configuration service.
Exceptions
- ArgumentNullException
Thrown when
operatingModeManager
ormodulesService
is null.
Methods
Run(Command)
Recursively exits the RootModules and initializes.
public override Task Run(Command command)
Parameters
command
CommandThe executing command.
Returns
- Task
The running task.
Update(Command)
Updates the command handler.
public override void Update(Command command)
Parameters
command
CommandThe executing command.