Class ExitModulesCommandHandler
Command handler for exit the modules recursively.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.Lisrt.Modules.Commands
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
[CommandHandler]
public class ExitModulesCommandHandler : CommandHandlerBase<ExitModulesCommandDefinition>, ICommandHandler<ExitModulesCommandDefinition>, ICommandHandler
Constructors
ExitModulesCommandHandler(IOperatingModeManager, IModulesService)
Initializes a new instance of the ExitModulesCommandHandler class.
Declaration
[ImportingConstructor]
public ExitModulesCommandHandler(IOperatingModeManager operatingModeManager, IModulesService modulesService)
Parameters
Type | Name | Description |
---|---|---|
IOperatingModeManager | operatingModeManager | Operating mode manager. |
IModulesService | modulesService | Modules configuration service. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Methods
Run(Command)
Run the command handler.
Declaration
public override Task Run(Command command)
Parameters
Type | Name | Description |
---|---|---|
Command | command | The executing command. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The running task. |
Overrides
Gemini.Framework.Commands.CommandHandlerBase<Loehnert.Lisrt.Modules.Commands.ExitModulesCommandDefinition>.Run(Gemini.Framework.Commands.Command)
Update(Command)
Updates the command handler.
Declaration
public override void Update(Command command)
Parameters
Type | Name | Description |
---|---|---|
Command | command | The executing command. |
Overrides
Gemini.Framework.Commands.CommandHandlerBase<Loehnert.Lisrt.Modules.Commands.ExitModulesCommandDefinition>.Update(Gemini.Framework.Commands.Command)