Interface ICommandFactory
Handles creations of all types of commands.
Namespace: LemonEdge.Client.UI.API.Commands
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public interface ICommandFactory
Methods
EPCommand(IModelLayoutCommon, Guid)
Creates a command implementation for the specified unique command type
Declaration
EPCommand EPCommand(IModelLayoutCommon modelLayoutCommon, Guid type)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | modelLayoutCommon | The host context in which the command will operate |
Guid | type | The id of the unique command to create |
Returns
Type | Description |
---|---|
EPCommand | A command implementation for the specified unique command |
GetParameterType(Guid)
Returns the parameter type associated with the specified unique command type.
Retrieved from CommandDescriptorOptionsAttribute marked against a command implementation
Declaration
Type GetParameterType(Guid commandType)
Parameters
Type | Name | Description |
---|---|---|
Guid | commandType | The command type to retrieve any parameter type for |
Returns
Type | Description |
---|---|
Type | The parameter type associated with the specified unique command type. |
ReloadCommands()
Reloads the default commands.
Declaration
Task ReloadCommands()
Returns
Type | Description |
---|---|
Task |
Separator()
The static separator instance that has no command action.
Declaration
ViewCommandSeparator Separator()
Returns
Type | Description |
---|---|
ViewCommandSeparator |
ViewCommand(Type, params object[])
Creates a ViewCommand of provided type.
Declaration
ViewCommand ViewCommand(Type type, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The concrete type |
object[] | args | The args to send to the command's constructor |
Returns
Type | Description |
---|---|
ViewCommand | The view command |
ViewCommand<TCommand>(params object[])
Creates a ViewCommand of the type TCommand.
Declaration
ViewCommand ViewCommand<TCommand>(params object[] args) where TCommand : ViewCommand
Parameters
Type | Name | Description |
---|---|---|
object[] | args | The args to send to the command's constructor |
Returns
Type | Description |
---|---|
ViewCommand | The view command |
Type Parameters
Name | Description |
---|---|
TCommand | The concrete command type |