Interface ICommandExecutor
- Namespace
- Signal.Application.Commands
- Assembly
- Signal.Application.dll
Resolves, checks, binds and runs a parsed command.
public interface ICommandExecutor
Methods
ExecuteAsync(MessageContext, ParsedCommand)
Executes parsed: lookup → preconditions → argument binding → invocation.
Task<CommandResult> ExecuteAsync(MessageContext message, ParsedCommand parsed)
Parameters
messageMessageContextThe pipeline context of the triggering message.
parsedParsedCommandThe parsed invocation.
Returns
- Task<CommandResult>
The outcome. Exceptions of the command are captured as CommandFaulted.