Table of Contents

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

TCommand

Type of command being handled.

TResponse

Type returned once the flow completes.

Inherited Members

Remarks

Handlers should be pure where possible, delegating side effects to injected collaborators.