| 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.SERVICEREQUESTS | |
|||||
Code Reference
» Cat.ServiceRequests.Abstractions Assembly
Cat.ServiceRequests.Abstractions Namespace
Defines the contracts for service requests: the request markers, the handlers that run them, and the processor that finds the right handler and returns an ICatResponse.
| Interfaces | |
|---|---|
| ICatServiceRequest | Marks a service request that returns a response without a payload. Handle it with ICatServiceRequestHandler<TRequest>. |
| ICatServiceRequest<TResponse> | Marks a service request that returns a response with a payload. Handle it with ICatServiceRequestHandler<TRequest,TResponse>. |
| ICatServiceRequestHandler<TRequest,TResponse> | Handles one kind of service request that returns a payload. Implement it once per request type. The module finds and registers it for you. |
| ICatServiceRequestHandler<TRequest> | Handles one kind of service request that returns no payload. Implement it once per request type. The module finds and registers it for you. |
| ICatServiceRequestProcessor | Single entry point for running service requests. It finds the handler for a request, runs it through the registered decorators and returns the response. |