Class InitializeModulesCommandHandler
Command handler for reinitializing the modules recursively.
Inheritance
InitializeModulesCommandHandler
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 InitializeModulesCommandHandler : CommandHandlerBase<InitializeModulesCommandDefinition>, ICommandHandler<InitializeModulesCommandDefinition>, ICommandHandler
Constructors
InitializeModulesCommandHandler(IOperatingModeManager, IModulesService)
Initializes a new instance of the InitializeModulesCommandHandler class.
Declaration
[ImportingConstructor]
public InitializeModulesCommandHandler(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)
Recursively exits the RootModules and initializes.
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.InitializeModulesCommandDefinition>.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.InitializeModulesCommandDefinition>.Update(Gemini.Framework.Commands.Command)