Interface ICommandResultHandler
- Namespace
- Signal.Application.Commands
- Assembly
- Signal.Application.dll
Decides how the user is informed about a command's outcome. Replace it to customize error replies (e.g. localisation).
public interface ICommandResultHandler
Methods
HandleAsync(MessageContext, CommandResult)
Reacts to the outcome of a command.
Task HandleAsync(MessageContext context, CommandResult result)
Parameters
contextMessageContextThe pipeline context of the triggering message.
resultCommandResultThe outcome.
Returns
- Task
A task that completes when the user was informed.