Interface ICommand<TModel>
Base implementation for all code factory commands.
Inherited Members
Namespace: CodeFactory
Assembly: CodeFactory.dll
Syntax
public interface ICommand<TModel> : ICommandBase<TModel> where TModel : class
Type Parameters
Name | Description |
---|---|
TModel | Target code factory model to be provided for the command. |
Methods
EnableCommandAsync(TModel)
Validation logic that will determine if this command should be enabled for execution.
Declaration
Task<bool> EnableCommandAsync(TModel result)
Parameters
Type | Name | Description |
---|---|---|
TModel | result | The target model data that will be used to determine if this command should be enabled. |
Returns
Type | Description |
---|---|
Task<bool> | Boolean flag that will tell code factory to enable this command or disable it. |