Class ScriptCommandHandlerBase<TCommandDefinition>
Base class for command handler of the ScriptModule.
public abstract class ScriptCommandHandlerBase<TCommandDefinition> : CommandHandlerBase<TCommandDefinition>, ICommandHandler<TCommandDefinition>, ICommandHandler where TCommandDefinition : CommandDefinition
Type Parameters
TCommandDefinition
Type of the associated command definition.
- Inheritance
-
CommandHandlerBase<TCommandDefinition>ScriptCommandHandlerBase<TCommandDefinition>
- Implements
-
ICommandHandler<TCommandDefinition>
- Derived
- Inherited Members
Constructors
ScriptCommandHandlerBase(IShell)
Initializes a new instance of the ScriptCommandHandlerBase<TCommandDefinition> class.
[ImportingConstructor]
protected ScriptCommandHandlerBase(IShell shell)
Parameters
shell
IShellGemini shell.
Exceptions
- ArgumentNullException
Thrown when
shell
is null.
Properties
Shell
Gets the shell.
protected IShell Shell { get; }
Property Value
Methods
GetScriptShellOrDefault(Command)
Gets the selected current IScriptShell or null when no shell is selected.
protected virtual IScriptShell GetScriptShellOrDefault(Command command = null)
Parameters
command
CommandWhen not null, tries to return LayoutItem when it implements IScriptShell.
Returns
- IScriptShell
The shell or null.