| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.QUERIES | |
|||||
Code Reference
» Cat.Queries.Abstractions Assembly
Cat.Queries.Abstractions Namespace
Defines the contracts for queries: the query marker, the handlers that answer them, and the processor that finds the right handler and returns an ICatResponse<TResponse>.
| Interfaces | |
|---|---|
| ICatQuery<TQueryResult> | Marks a query that reads data and returns it in a response. Handle it with ICatQueryHandler<TQuery,TQueryResult>. |
| ICatQueryHandler<TQuery,TQueryResult> | Handles one kind of query. Implement it once per query type. The module finds and registers it for you. |
| ICatQueryProcessor | Single entry point for running queries. It finds the handler for a query, runs it through the registered decorators and returns the response. |