Table of Contents

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

message MessageContext

The pipeline context of the triggering message.

parsed ParsedCommand

The parsed invocation.

Returns

Task<CommandResult>

The outcome. Exceptions of the command are captured as CommandFaulted.