Class ExitModulesCommandHandler
Command handler for exit the modules recursively.
[CommandHandler]
public class ExitModulesCommandHandler : CommandHandlerBase<ExitModulesCommandDefinition>, ICommandHandler<ExitModulesCommandDefinition>, ICommandHandler
- Inheritance
-
ExitModulesCommandHandler
- Implements
- Inherited Members
- Extension Methods
Constructors
ExitModulesCommandHandler(IOperatingModeManager, IModulesService)
Initializes a new instance of the ExitModulesCommandHandler class.
[ImportingConstructor]
public ExitModulesCommandHandler(IOperatingModeManager operatingModeManager, IModulesService modulesService)
Parameters
operatingModeManager
IOperatingModeManagerOperating mode manager.
modulesService
IModulesServiceModules configuration service.
Exceptions
- ArgumentNullException
Thrown when
operatingModeManager
ormodulesService
is null.
Methods
Run(Command)
Run the command handler.
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.