View on GitHub
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.RESPONSES   |

Code Reference

» Cat.Responses.Abstractions Assembly

Cat.Responses.Abstractions Namespace

Defines the contracts for representing an operation’s outcome, its possible response types, the errors behind a failure, and a page of a larger list, without depending on any concrete implementation.

Classes  
CatResponseType Identifies the specific outcome of an operation, such as Ok or NotFound. Every outcome is either a Succeeded or a Failed variant, so matching on the base type tells you whether a response succeeded without inspecting the concrete outcome.
CatResponseType.Failed Base type for every outcome that represents a failed operation.
CatResponseType.Failed.BadRequest The response type for BadRequest.
CatResponseType.Failed.Conflict The response type for Conflict.
CatResponseType.Failed.Forbidden The response type for Forbidden.
CatResponseType.Failed.InternalServerError The response type for InternalServerError.
CatResponseType.Failed.NotFound The response type for NotFound.
CatResponseType.Failed.Unauthorized The response type for Unauthorized.
CatResponseType.Succeeded Base type for every outcome that represents a successful operation.
CatResponseType.Succeeded.Created The response type for Created.
CatResponseType.Succeeded.NoContent The response type for NoContent.
CatResponseType.Succeeded.Ok The response type for Ok.
Interfaces  
ICatError Describes one error that caused a response to fail.
ICatPagedList<TList> One page of a larger list, with the numbers needed to page through the rest.
ICatResponse Represents the outcome of an operation: whether it succeeded or failed, its specific CatResponseType, and any errors that caused it to fail.
ICatResponse<TResponse> An ICatResponse that carries a value when it succeeds.