Interface ICommandHandler<TCommand, TResponse>
- Namespace
- SimpleMediator
- Assembly
- SimpleMediator.dll
Handles a concrete command and returns a functional response.
public interface ICommandHandler<TCommand, TResponse> : IRequestHandler<TCommand, TResponse> where TCommand : ICommand<TResponse>
Type Parameters
TCommandType of command being handled.
TResponseType returned once the flow completes.
- Inherited Members
Remarks
Handlers should be pure where possible, delegating side effects to injected collaborators.