# Core Interfaces Quick reference for command and query handler interfaces. ## ICommandHandler ```csharp // Command without result public interface ICommandHandler where TCommand : class { Task HandleAsync(TCommand command, CancellationToken ct = default); } // Command with result public interface ICommandHandler where TCommand : class { Task HandleAsync(TCommand command, CancellationToken ct = default); } ``` ## IQueryHandler ```csharp public interface IQueryHandler where TQuery : class { Task HandleAsync(TQuery query, CancellationToken ct = default); } ``` ## See Also - [API Reference Overview](README.md) - [Commands Documentation](../core-features/commands/README.md)