| 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
ICatResponse Interface
Represents the outcome of an operation: whether it succeeded or failed, its specific CatResponseType, and any errors that caused it to fail.
public interface ICatResponse
Derived
↳ ICatResponse<TResponse>
| Properties | |
|---|---|
| ErrorList | The errors that caused the operation to fail. Empty when IsSucceeded is true. |
| IsFailed | true if the operation failed. |
| IsSucceeded | true if the operation succeeded. |
| Type | The specific outcome of the operation, such as Ok or NotFound. |
| Methods | |
|---|---|
| Cast<TResponse>() | Converts this response into an ICatResponse<TResponse>, carrying over its type and errors. Only valid when IsFailed is true, since no value is supplied for the succeeded case. |
| Cast<TResponse>(TResponse) | Converts this response into an ICatResponse<TResponse> carrying the given value, keeping this response’s type. |