Class CustomCommand
This command executes the ViewItem system command
Opens a collection of the specified entity type form the AnySingleCommandParam parameter
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.CustomCommand, typeof(CustomCommandParam))]
public class CustomCommand : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
CustomCommand(IRootController, IModelLayoutCommon)
Creates a new CustomCommand command
Declaration
public CustomCommand(IRootController root, IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | owner | The owning context for this command |
Methods
InternalCanExecuteAsync(object)
Returns if this command can be executed or not from the client application UI
You must override InternalCanExecute(object?) or InternalCanExecuteAsync(object?) in order to implement if it can be executed
Declaration
public override Task<bool> InternalCanExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
Task<bool> | If this command can be executed or not from the client application UI |
Overrides
InternalExecuteAsync(object)
You must override InternalExecuteAsync(object) or InternalExecute(object) in order to implement your commands action
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
Task |