Table of Contents

Class ScriptCommandHandlerBase<TCommandDefinition>

Namespace
Loehnert.Lisrt.Scripting.Commands
Assembly
Loehnert.Lisrt.Scripting.dll

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 IShell

Gemini shell.

Exceptions

ArgumentNullException

Thrown when shell is null.

Properties

Shell

Gets the shell.

protected IShell Shell { get; }

Property Value

IShell

Methods

GetScriptShellOrDefault(Command)

Gets the selected current IScriptShell or null when no shell is selected.

protected virtual IScriptShell GetScriptShellOrDefault(Command command = null)

Parameters

command Command

When not null, tries to return LayoutItem when it implements IScriptShell.

Returns

IScriptShell

The shell or null.