Interface ICommandHandler
An abstraction to handle a command request routed from a ICommandRouter.
public interface ICommandHandler
Methods
HandleCommandAsync(CommandHandlerContext)
Handles the command request.
Task<CommandHandlerResult> HandleCommandAsync(CommandHandlerContext context)
Parameters
context
CommandHandlerContextThe handler context.
Returns
- Task<CommandHandlerResult>
The handler result.